From 73a81edcbb49511342efcad4373a59d9905a6cba Mon Sep 17 00:00:00 2001 From: Thomas Rubini <74205383+ThomasRubini@users.noreply.github.com> Date: Mon, 16 Jan 2023 08:56:30 +0100 Subject: [PATCH] replace gamefinshed with gamefinished --- truthseeker/routes/routes_api.py | 2 +- truthseeker/static/js/game.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/truthseeker/routes/routes_api.py b/truthseeker/routes/routes_api.py index 6bf81d5..5aa7001 100644 --- a/truthseeker/routes/routes_api.py +++ b/truthseeker/routes/routes_api.py @@ -196,7 +196,7 @@ def check_anwser(): member.results = results if game.has_finished(): json_game_results = game.generate_game_results() - APP.socketio_app.emit("gamefinshed", json_game_results, room="game."+game.game_id) + APP.socketio_app.emit("gamefinished", json_game_results, room="game."+game.game_id) del game response = {"error": 0} return response diff --git a/truthseeker/static/js/game.js b/truthseeker/static/js/game.js index 7cdc098..4b353a6 100644 --- a/truthseeker/static/js/game.js +++ b/truthseeker/static/js/game.js @@ -195,7 +195,7 @@ function initSock(){ console.log(username); }); - socket.on("gamefinshed", (finalResults) => { + socket.on("gamefinished", (finalResults) => { hide("emotion_and_culprit_choices"); console.log(finalResults); for (const player in finalResults["player"]){