From a490226f13beda11770678005fa3709b0b71b60e Mon Sep 17 00:00:00 2001 From: iTrooz Date: Wed, 22 Apr 2026 17:32:40 +0200 Subject: [PATCH] Update classquiz/socket_server/__init__.py Co-authored-by: Marlon --- classquiz/socket_server/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classquiz/socket_server/__init__.py b/classquiz/socket_server/__init__.py index 253864d..5ff3e6b 100644 --- a/classquiz/socket_server/__init__.py +++ b/classquiz/socket_server/__init__.py @@ -293,7 +293,7 @@ async def submit_answer(sid: str, data: dict): question_index = int(float(data.question_index)) game_data = await PlayGame.get_from_redis(session["game_pin"]) - if game_data.current_question != question_index: + if question_index != game_data.current_question: await sio.emit("question_not_active", room=sid) return