fix: sort games in intermission by time left

This commit is contained in:
2024-02-22 00:11:22 -05:00
parent 8c5de8602f
commit e5824cefc5

View File

@@ -124,7 +124,7 @@ def calculate_game_priority(game):
# Pushes the games that are in intermission to the bottom, but retains their sort # Pushes the games that are in intermission to the bottom, but retains their sort
if game["clock"]["inIntermission"]: if game["clock"]["inIntermission"]:
return (final_priority - 2000) return (-2000 - time_remaining)
return final_priority return final_priority