remotes/1693045480750635534/spooky-22
Aevann1 2022-02-16 01:02:48 +02:00
parent ec9797ff18
commit b752a2ddad
1 changed files with 8 additions and 7 deletions

View File

@ -1036,14 +1036,15 @@ def unsave_comment(cid, v):
@auth_required
def handle_blackjack_action(cid, v):
comment = get_comment(cid)
action = request.values.get("action", "")
if 'active' in comment.blackjack_result:
action = request.values.get("action", "")
if action == 'hit': player_hit(comment)
elif action == 'stay': player_stayed(comment)
g.db.add(comment)
g.db.add(v)
g.db.commit()
if action == 'hit': player_hit(comment)
elif action == 'stay': player_stayed(comment)
g.db.add(comment)
g.db.add(v)
g.db.commit()
return { "message" : "..." }
@app.post("/wordle/<cid>")