merge develop into main for v4.1.9 (#44)
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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>';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user