diff --git a/scoreboard.py b/scoreboard.py index 08cc6a5..e1220ae 100644 --- a/scoreboard.py +++ b/scoreboard.py @@ -403,7 +403,8 @@ def run(): last_switch = now print(preferred_games[current_preferred_game]) - draw_single_game(canvas, preferred_games[current_preferred_game]) + single_preferred_game = [g for g in games where preferred_games[current_preferred_game] == g['id']] + draw_single_game(canvas, single_preferred_game) else: # no games available, just draw placeholder graphics.DrawText(canvas, font, 10, 22, graphics.Color(*Colors.RED.value), "No games today")