fix: adjust the socker controller
This commit is contained in:
parent
76bbbf0824
commit
27fc8245da
|
@ -129,7 +129,7 @@ class SocketController:
|
|||
|
||||
@self.socketio.on("submit_answer")
|
||||
def handle_submit_answer(data):
|
||||
session_code = data.get("session_id") # front‑end masih mengirim session_id
|
||||
session_code = data.get("session_id")
|
||||
user_id = data.get("user_id")
|
||||
question_index = data.get("question_index")
|
||||
user_answer = data.get("answer")
|
||||
|
|
Loading…
Reference in New Issue