From ee77366280a099019817d8603ce71584743d8162 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sat, 9 Mar 2024 11:44:22 +0200 Subject: [PATCH] fix 500 error --- files/helpers/roulette.py | 2 +- files/helpers/slots.py | 2 +- files/helpers/twentyone.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/files/helpers/roulette.py b/files/helpers/roulette.py index bd601d746..1d33075c6 100644 --- a/files/helpers/roulette.py +++ b/files/helpers/roulette.py @@ -85,7 +85,7 @@ def get_active_roulette_games(): def charge_gambler(gambler, amount, currency): - charged = gambler.charge_account(currency, amount, "Cost of roulette bet")[0] + charged = gambler.charge_account(currency, amount, "Cost of roulette bet") if not charged: raise Exception("Gambler cannot afford charge.") diff --git a/files/helpers/slots.py b/files/helpers/slots.py index a4d36e231..e57c47c1a 100644 --- a/files/helpers/slots.py +++ b/files/helpers/slots.py @@ -25,7 +25,7 @@ payout_to_symbols = { def casino_slot_pull(gambler, wager_value, currency): over_min = wager_value >= minimum_bet under_max = wager_value <= maximum_bet - charged = gambler.charge_account(currency, wager_value)[0] + charged = gambler.charge_account(currency, wager_value) if (over_min and under_max and charged): payout = determine_payout() diff --git a/files/helpers/twentyone.py b/files/helpers/twentyone.py index 6cd90c4c7..390f5c284 100644 --- a/files/helpers/twentyone.py +++ b/files/helpers/twentyone.py @@ -101,7 +101,7 @@ def get_active_twentyone_game_state(gambler): def charge_gambler(gambler, amount, currency): - charged = gambler.charge_account(currency, amount)[0] + charged = gambler.charge_account(currency, amount) if not charged: raise Exception("Gambler cannot afford charge.")