incognitolm commited on
Commit
ca4b51b
·
verified ·
1 Parent(s): 8c2f58b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -74,7 +74,6 @@ async def get_game_status(pin: str):
74
  game = games.get(pin)
75
  if not game:
76
  raise HTTPException(status_code=404, detail="Game not found.")
77
- check_game_status(game)
78
  return {"success": True, "game": game}
79
 
80
  @app.post("/api/handleAction")
@@ -93,6 +92,7 @@ async def handle_action(request: Request):
93
  game = games[pin]
94
 
95
  if action == 'getStatus':
 
96
  return {"success": True, "challenge": game.get("challenge", None)}
97
 
98
  if action == 'steal':
 
74
  game = games.get(pin)
75
  if not game:
76
  raise HTTPException(status_code=404, detail="Game not found.")
 
77
  return {"success": True, "game": game}
78
 
79
  @app.post("/api/handleAction")
 
92
  game = games[pin]
93
 
94
  if action == 'getStatus':
95
+ check_game_status(game)
96
  return {"success": True, "challenge": game.get("challenge", None)}
97
 
98
  if action == 'steal':