Fix data structure pointing to obsolete key

This commit is contained in:
Annika Backstrom 2019-09-01 07:42:30 +01:00
parent 7531161a24
commit 1f2dc34a70
1 changed files with 3 additions and 3 deletions

View File

@ -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: