Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b10736d43c | |||
| 8913b40a8c | |||
| daabae1e49 |
@@ -148,6 +148,11 @@ def calculate_game_priority(game):
|
|||||||
|
|
||||||
time_priority = ((1200 - time_remaining) / 20) * time_multiplier
|
time_priority = ((1200 - time_remaining) / 20) * time_multiplier
|
||||||
|
|
||||||
|
print(base_priority)
|
||||||
|
print(time_priority)
|
||||||
|
print(matchup_adjustment)
|
||||||
|
print(score_total)
|
||||||
|
|
||||||
# Calculate the final priority
|
# Calculate the final priority
|
||||||
final_priority = int(base_priority + time_priority - matchup_adjustment + score_total)
|
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):
|
def utc_to_est_time(utc_time):
|
||||||
utc_datetime = datetime.strptime(utc_time, "%Y-%m-%dT%H:%M:%SZ")
|
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
|
est_datetime = utc_datetime + est_offset
|
||||||
return est_datetime.strftime("%#I:%M %p")
|
return est_datetime.strftime("%#I:%M %p")
|
||||||
|
|||||||
@@ -166,9 +166,12 @@ function generateGameBoxes(games, state) {
|
|||||||
else if (game['Period'] == 3 ) {
|
else if (game['Period'] == 3 ) {
|
||||||
html += '3rd';
|
html += '3rd';
|
||||||
}
|
}
|
||||||
else {
|
else if (game['Period'] == 4 ) {
|
||||||
html += 'OT';
|
html += 'OT';
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
html += 'SO';
|
||||||
|
}
|
||||||
html += '</div>';
|
html += '</div>';
|
||||||
html += '<div class="live-time">' + game['Time Remaining'] + '</div>';
|
html += '<div class="live-time">' + game['Time Remaining'] + '</div>';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user