3 Commits
v4.1.8 ... main

Author SHA1 Message Date
b10736d43c merge develop into main for v4.1.9 (#44) 2024-03-11 12:38:28 -04:00
8913b40a8c hotfix: correct for dst 2024-03-11 12:37:19 -04:00
daabae1e49 fix: add shootout indicator 2024-02-25 01:17:04 -05:00
2 changed files with 10 additions and 2 deletions

View File

@@ -148,6 +148,11 @@ def calculate_game_priority(game):
time_priority = ((1200 - time_remaining) / 20) * time_multiplier
print(base_priority)
print(time_priority)
print(matchup_adjustment)
print(score_total)
# Calculate the final priority
final_priority = int(base_priority + time_priority - matchup_adjustment + score_total)
@@ -171,6 +176,6 @@ def get_team_standings(team_name):
def utc_to_est_time(utc_time):
utc_datetime = datetime.strptime(utc_time, "%Y-%m-%dT%H:%M:%SZ")
est_offset = timedelta(hours=-5)
est_offset = timedelta(hours=-4)
est_datetime = utc_datetime + est_offset
return est_datetime.strftime("%#I:%M %p")

View File

@@ -166,9 +166,12 @@ function generateGameBoxes(games, state) {
else if (game['Period'] == 3 ) {
html += '3rd';
}
else {
else if (game['Period'] == 4 ) {
html += 'OT';
}
else {
html += 'SO';
}
html += '</div>';
html += '<div class="live-time">' + game['Time Remaining'] + '</div>';
}