Also send raw json state in the websocket

This commit is contained in:
Astrid 2021-01-01 22:30:13 +01:00 committed by GitHub
parent 7450872769
commit 20fc9ba74c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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])
})