From d8b3bfdfea13137e4f7fda4680250305cac03b2f Mon Sep 17 00:00:00 2001 From: Mawoka Date: Fri, 7 Oct 2022 16:47:19 +0200 Subject: [PATCH] :bug: Fixed live/get_question/now-endpoint --- classquiz/routers/live.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/classquiz/routers/live.py b/classquiz/routers/live.py index 03440a1..433edca 100644 --- a/classquiz/routers/live.py +++ b/classquiz/routers/live.py @@ -242,11 +242,10 @@ async def too_stupid_to_come_up_with_a_name(game_pin: str, api_key: str, in_huma right=answer.right, answer=answer.answer, color=answer.color, color_code=color ) if game.current_question >= 0: - game.current_question += 1 return [ { **game.questions[game.current_question].dict(), - "current_question": game.current_question, + "current_question": game.current_question + 1 if in_human_count else game.current_question, "total_questions": len(game.questions), } ]