Amend f05ec93b: blackjack state implied constraint.

remotes/1693176582716663532/tmp_refs/heads/watchparty
Snakes 2022-09-29 00:36:58 -04:00
parent f05ec93b95
commit 11a9efb7cb
Signed by: Snakes
GPG Key ID: E745A82778055C7E
1 changed files with 3 additions and 2 deletions

View File

@ -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",