From e5824cefc5ebdbf8218e68ce6767915fa2fa2c37 Mon Sep 17 00:00:00 2001 From: Josh Wright Date: Thu, 22 Feb 2024 00:11:22 -0500 Subject: [PATCH] fix: sort games in intermission by time left --- app/scoreboard/process_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/scoreboard/process_data.py b/app/scoreboard/process_data.py index 761bbef..6af9121 100644 --- a/app/scoreboard/process_data.py +++ b/app/scoreboard/process_data.py @@ -124,7 +124,7 @@ def calculate_game_priority(game): # Pushes the games that are in intermission to the bottom, but retains their sort if game["clock"]["inIntermission"]: - return (final_priority - 2000) + return (-2000 - time_remaining) return final_priority