pass correct thing
This commit is contained in:
+2
-1
@@ -403,7 +403,8 @@ def run():
|
|||||||
|
|
||||||
last_switch = now
|
last_switch = now
|
||||||
print(preferred_games[current_preferred_game])
|
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:
|
else:
|
||||||
# no games available, just draw placeholder
|
# no games available, just draw placeholder
|
||||||
graphics.DrawText(canvas, font, 10, 22, graphics.Color(*Colors.RED.value), "No games today")
|
graphics.DrawText(canvas, font, 10, 22, graphics.Color(*Colors.RED.value), "No games today")
|
||||||
|
|||||||
Reference in New Issue
Block a user