incognitolm commited on
Commit
f1beee6
·
verified ·
1 Parent(s): c3f1705

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -92,7 +92,7 @@ async def handle_action(request: Request):
92
  game = games[pin]
93
 
94
  # If a challenge is pending, only allow challengeResponse (or getStatus) actions.
95
- if game.get("challenge") and action not in ['challengeResponse', 'getStatus']:
96
  return {"success": False, "message": "A challenge is pending, only challenge responses are allowed."}
97
 
98
  if action == 'getStatus':
 
92
  game = games[pin]
93
 
94
  # If a challenge is pending, only allow challengeResponse (or getStatus) actions.
95
+ if game.get("challenge") and action not in ['challengeResponse', 'getStatus', 'choose']:
96
  return {"success": False, "message": "A challenge is pending, only challenge responses are allowed."}
97
 
98
  if action == 'getStatus':