From f52aec04773f0023dde69385ec5e78d25998d8eb Mon Sep 17 00:00:00 2001 From: justcool393 Date: Mon, 21 Nov 2022 09:13:14 -0600 Subject: [PATCH] fix betting on 0 --- files/routes/casino.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/casino.py b/files/routes/casino.py index 9455c7599..8add36820 100644 --- a/files/routes/casino.py +++ b/files/routes/casino.py @@ -218,7 +218,7 @@ def roulette_player_placed_bet(v): try: which_int = int(which) except: which_int = None - if not bet_type.validation_function(which_int or which): + if not bet_type.validation_function(which if which_int is None else which_int): abort(400, f"Not a valid roulette bet for bet type {bet_type.value[0]}") try: