Merge pull request #97 from xSke/patch-1

Also send raw json state in the websocket
This commit is contained in:
Sakimori 2021-01-01 16:33:56 -05:00 committed by GitHub
commit 297cd0a6f4
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])
})