Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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':
|