Fix data structure pointing to obsolete key
This commit is contained in:
parent
7531161a24
commit
1f2dc34a70
6
xoxo.py
6
xoxo.py
@ -59,10 +59,10 @@ if __name__ == '__main__':
|
|||||||
last_id = 0
|
last_id = 0
|
||||||
while True:
|
while True:
|
||||||
result = requests.get("https://xoxo-zone-stats.glitch.me/").json()
|
result = requests.get("https://xoxo-zone-stats.glitch.me/").json()
|
||||||
if result['stats'] != last_stats:
|
if result != last_stats:
|
||||||
draw.update(result['stats'])
|
draw.update(result)
|
||||||
draw.write()
|
draw.write()
|
||||||
last_stats = result['stats']
|
last_stats = result
|
||||||
time.sleep(30)
|
time.sleep(30)
|
||||||
|
|
||||||
# vim:ts=2 sw=2 et:
|
# vim:ts=2 sw=2 et:
|
||||||
|
Loading…
Reference in New Issue
Block a user