diff --git a/classquiz/routers/quiz.py b/classquiz/routers/quiz.py index b9f30ee..d6d128d 100644 --- a/classquiz/routers/quiz.py +++ b/classquiz/routers/quiz.py @@ -108,10 +108,10 @@ async def start_quiz( if custom_field == "": custom_field = None game = await redis.get(f"game:{game_pin}") - while( game is not None): + while game is not None: game_pin = randint(10000000, 99999999) game = await redis.get(f"game:{game_pin}") - + game = PlayGame( quiz_id=quiz_id, game_pin=str(game_pin),