Browse Source

Fix data structure pointing to obsolete key

master
Annika Backstrom 2 years ago
parent
commit
1f2dc34a70
  1. 6
      xoxo.py

6
xoxo.py

@ -59,10 +59,10 @@ if __name__ == '__main__':
last_id = 0
while True:
result = requests.get("https://xoxo-zone-stats.glitch.me/").json()
if result['stats'] != last_stats:
draw.update(result['stats'])
if result != last_stats:
draw.update(result)
draw.write()
last_stats = result['stats']
last_stats = result
time.sleep(30)
# vim:ts=2 sw=2 et:
Loading…
Cancel
Save