From 11a9efb7cbbbb6bb077e441f4326a15637134c33 Mon Sep 17 00:00:00 2001 From: TLSM Date: Thu, 29 Sep 2022 00:36:58 -0400 Subject: [PATCH] Amend f05ec93b: blackjack state implied constraint. --- files/routes/casino.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/files/routes/casino.py b/files/routes/casino.py index 56a3ca3cc..7ed64404a 100644 --- a/files/routes/casino.py +++ b/files/routes/casino.py @@ -31,9 +31,10 @@ def casino_game_page(v, game): feed = json.dumps(get_game_feed(game)) leaderboard = json.dumps(get_game_leaderboard(game)) - game_state = None + game_state = '' if game == 'blackjack': - game_state = json.dumps(get_active_twentyone_game_state(gambler)) + if get_active_twentyone_game(v): + game_state = json.dumps(get_active_twentyone_game_state(v)) return render_template( f"casino/{game}_screen.html",