Untested Ormar and FastAPI update
This commit is contained in:
@@ -17,5 +17,5 @@ async def get_game_in_lobby(user: User = Depends(get_current_user)):
|
||||
game_in_lobby_raw = await redis.get(f"game_in_lobby:{user.id.hex}")
|
||||
if game_in_lobby_raw is None:
|
||||
raise HTTPException(status_code=404, detail="No game waiting")
|
||||
game_in_lobby = GameInLobby.parse_raw(game_in_lobby_raw)
|
||||
game_in_lobby = GameInLobby.model_validate_json(game_in_lobby_raw)
|
||||
return game_in_lobby
|
||||
|
||||
Reference in New Issue
Block a user