remove game when it finished

This commit is contained in:
Djalim Simaila 2023-01-15 21:56:01 +01:00
parent 4101552658
commit 4a1014e75c

View File

@ -197,6 +197,6 @@ def check_anwser():
if game.has_finished():
json_game_results = game.generate_game_results()
APP.socketio_app.emit("gamefinshed", json_game_results, room="game."+game.game_id)
# TODO desctruct game
del game
response = {"error": 0}
return response