pass correct thing
This commit is contained in:
+2
-1
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user