Merge pull request #97 from xSke/patch-1
Also send raw json state in the websocket
This commit is contained in:
commit
297cd0a6f4
|
@ -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