fix: shootout is period 5 and gets top priority
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user