From 211fa0b5429e753d8da25b1142320725329219d7 Mon Sep 17 00:00:00 2001 From: Mawoka Date: Fri, 7 Oct 2022 13:16:00 +0200 Subject: [PATCH] :bug: Fixed wrong total-questions-count --- classquiz/routers/live.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/classquiz/routers/live.py b/classquiz/routers/live.py index 9ac2f10..9b788cf 100644 --- a/classquiz/routers/live.py +++ b/classquiz/routers/live.py @@ -113,8 +113,6 @@ async def get_live_game_data( data.answers.append(ga_1) player_count = await redis.scard(f"game_session:{game_pin}:players") total_questions = len(game.questions) - if in_human_count: - total_questions += 1 game = _GetLivePlayGame(**{**game.dict(), "total_questions": total_questions}) if in_human_count: player_count += 1