Merge pull request #50 from ThomasRubini/gamefinished
This commit is contained in:
		
						commit
						bd84671098
					
				| @ -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 | ||||
|  | ||||
| @ -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"]){ | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user