Also send raw json state in the websocket
This commit is contained in:
parent
7450872769
commit
20fc9ba74c
|
@ -127,6 +127,7 @@ def update_loop():
|
||||||
data_to_send.append({
|
data_to_send.append({
|
||||||
'timestamp' : timestamp,
|
'timestamp' : timestamp,
|
||||||
'league' : game_states[timestamp]['leagueoruser'] if game_states[timestamp]['is_league'] else '',
|
'league' : game_states[timestamp]['leagueoruser'] if game_states[timestamp]['is_league'] else '',
|
||||||
|
'state' : game_states[timestamp],
|
||||||
'html' : template.render(state=game_states[timestamp])
|
'html' : template.render(state=game_states[timestamp])
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user