fix: shootout is period 5 and gets top priority (#29)

This commit is contained in:
2024-02-19 16:24:13 -05:00
committed by GitHub

View File

@@ -99,7 +99,7 @@ def calculate_game_priority(game):
score_total = (home_score + away_score) * 20 score_total = (home_score + away_score) * 20
# Calculate the base priority based on period # Calculate the base priority based on period
base_priority = {4: 400, 3: 300, 2: 200}.get(period, 100) base_priority = {5: 450, 4: 400, 3: 300, 2: 200}.get(period, 100)
# Adjust base priority based on score difference # Adjust base priority based on score difference
if score_difference > 3: if score_difference > 3: