Merge pull request #50 from ThomasRubini/gamefinished

This commit is contained in:
Thomas Rubini 2023-01-16 09:07:34 +01:00 committed by GitHub
commit bd84671098
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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"]){