Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 53a0fc7993 | |||
| c8f535ee48 | |||
| 7e41cf4781 | |||
| 2e85ced6ce | |||
| 085514ab16 | |||
| 04e29469dd | |||
| 982fdfb3c1 | |||
| 18ff48cc2c | |||
| 9f4a6c966a |
@@ -148,11 +148,6 @@ 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)
|
||||||
|
|
||||||
@@ -176,6 +171,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=-4)
|
est_offset = timedelta(hours=-5)
|
||||||
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,11 +166,8 @@ function generateGameBoxes(games, state) {
|
|||||||
else if (game['Period'] == 3 ) {
|
else if (game['Period'] == 3 ) {
|
||||||
html += '3rd';
|
html += '3rd';
|
||||||
}
|
}
|
||||||
else if (game['Period'] == 4 ) {
|
|
||||||
html += 'OT';
|
|
||||||
}
|
|
||||||
else {
|
else {
|
||||||
html += 'SO';
|
html += 'OT';
|
||||||
}
|
}
|
||||||
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