From 1f2dc34a7025d78cf6df24a8c3a39baf102ac064 Mon Sep 17 00:00:00 2001 From: Annika Backstrom Date: Sun, 1 Sep 2019 07:42:30 +0100 Subject: [PATCH] Fix data structure pointing to obsolete key --- xoxo.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xoxo.py b/xoxo.py index 53e3dca..91b3b2d 100644 --- a/xoxo.py +++ b/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: