From dd644bc38c233da6b7a0cff33a6e2ee0f6f1d9c5 Mon Sep 17 00:00:00 2001 From: Alex Frantz Date: Tue, 5 May 2026 17:51:57 -0400 Subject: [PATCH] don't readd same games --- scoreboard.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scoreboard.py b/scoreboard.py index 4ceff1d..301f05d 100644 --- a/scoreboard.py +++ b/scoreboard.py @@ -391,10 +391,11 @@ def run(): # get new preferred games for game in games: if game['away'] in preferred_teams or game['home'] in preferred_teams: - if 'Final' not in game['status']: + if 'Final' not in game['status'] and game['id'] not in preferred_games: preferred_games.append(game['id']) # cycle through preferred games and all games + print(preferred_games) all_games_max_page = math.ceil(len(games) / 4) if now - last_switch > page_display_time: print(show_preferred, show_cycle, current_preferred_game, len(preferred_games))