From 20fc9ba74c9bd9a781c2d5abacf92d9eb2b5a6a6 Mon Sep 17 00:00:00 2001 From: Astrid Date: Fri, 1 Jan 2021 22:30:13 +0100 Subject: [PATCH] Also send raw json state in the websocket --- main_controller.py | 1 + 1 file changed, 1 insertion(+) diff --git a/main_controller.py b/main_controller.py index 2191b75..c439608 100644 --- a/main_controller.py +++ b/main_controller.py @@ -127,6 +127,7 @@ def update_loop(): data_to_send.append({ 'timestamp' : timestamp, 'league' : game_states[timestamp]['leagueoruser'] if game_states[timestamp]['is_league'] else '', + 'state' : game_states[timestamp], 'html' : template.render(state=game_states[timestamp]) })