From cc29719f7dd451410bdb80d209efedf29aede1ab Mon Sep 17 00:00:00 2001 From: Mawoka Date: Sat, 12 Mar 2022 17:46:52 +0100 Subject: [PATCH] :ambulance: Redis.get was replaced by redis.search (once more) --- classquiz/routers/quiz.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classquiz/routers/quiz.py b/classquiz/routers/quiz.py index e44cb09..a534d39 100644 --- a/classquiz/routers/quiz.py +++ b/classquiz/routers/quiz.py @@ -55,7 +55,7 @@ async def start_quiz(quiz_id: str, user: User = Depends(get_current_user)): @router.get("/join/{game_pin}") async def get_game_id(game_pin: str): - redis_res = (await redis.search(f"game:{game_pin}")).decode() + redis_res = (await redis.get(f"game:{game_pin}")).decode() if redis_res is None: raise HTTPException(status_code=404, detail="game not found") else: