From 2e04da5aa697a7b497e63c5560fa32311376f471 Mon Sep 17 00:00:00 2001 From: Alex Frantz Date: Tue, 5 May 2026 17:40:43 -0400 Subject: [PATCH] wrong var --- scoreboard.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scoreboard.py b/scoreboard.py index 878a042..bcb5dcf 100644 --- a/scoreboard.py +++ b/scoreboard.py @@ -362,7 +362,6 @@ def run(): last_switch = time() # preferred games - preferred_game_on = False current_preferred_game = 0 preferred_games = [] preferred_teams = [ @@ -391,13 +390,12 @@ def run(): for game in games: if game['away'] in preferred_teams or game['home'] in preferred_teams: if 'Final' not in game['status']: - preferred_game_on = True preferred_games.append(game['id']) # cycle through preferred games and all games all_games_max_page = math.ceil(len(games) / 4) if now - last_switch > page_display_time: - if len(current_preferred_game) > 0: + if len(preferred_games) > 0: if current_preferred_game <= len(preferred_games): if current_preferred_game == len(preferred_games): current_page = 0