forked from MarseyWorld/MarseyWorld
stop the error spam
parent
eb9f0e7605
commit
ea17fa53c9
|
@ -87,13 +87,16 @@ def pull_slots(v):
|
||||||
def blackjack_deal_to_player(v):
|
def blackjack_deal_to_player(v):
|
||||||
if v.rehab: return {"error": "You are under Rehab award effect!"}
|
if v.rehab: return {"error": "You are under Rehab award effect!"}
|
||||||
|
|
||||||
wager = int(request.values.get("wager"))
|
try:
|
||||||
currency = request.values.get("currency")
|
wager = int(request.values.get("wager"))
|
||||||
create_new_game(v, wager, currency)
|
currency = request.values.get("currency")
|
||||||
state = dispatch_action(v, BlackjackAction.DEAL)
|
create_new_game(v, wager, currency)
|
||||||
feed = get_game_feed('blackjack')
|
state = dispatch_action(v, BlackjackAction.DEAL)
|
||||||
|
feed = get_game_feed('blackjack')
|
||||||
|
|
||||||
return {"success": True, "state": state, "feed": feed}
|
return {"success": True, "state": state, "feed": feed}
|
||||||
|
except Exception as error:
|
||||||
|
return {"error": error}
|
||||||
|
|
||||||
|
|
||||||
@app.post("/casino/twentyone/hit")
|
@app.post("/casino/twentyone/hit")
|
||||||
|
|
Loading…
Reference in New Issue