summaryrefslogtreecommitdiff
path: root/cron/handler.py
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2019-04-23 14:35:06 +0300
committerYuval Adam <_@yuv.al>2019-04-23 14:35:06 +0300
commitf6233b02f591129c75dcbc0edb91e30dfbaeaede (patch)
treee4d5cce1e3dd4fc9f9024ccd8ca5e803d8f30f7d /cron/handler.py
parent0a8e2fb3fb72d28da2398ecc1c8db8e570861fa2 (diff)
Remove fetching of low res images
Diffstat (limited to 'cron/handler.py')
-rw-r--r--cron/handler.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cron/handler.py b/cron/handler.py
index 47d81bb..701c5c4 100644
--- a/cron/handler.py
+++ b/cron/handler.py
@@ -25,7 +25,7 @@ def geshem_update():
except KeyError:
latest_keys = []
- for r in ['images140', 'images280']:
+ for r in ['images280']:
imgs = sorted(maps_json[r].items(), key=lambda x: x[0], reverse=True)
res = r[-3:]
for ts, url in imgs:
@@ -53,7 +53,7 @@ def geshem_update():
if latest_keys:
index = {}
- for r in ['140', '280']:
+ for r in ['280']:
keys = sorted(list(filter(lambda k: k.endswith('{}.png'.format(r)), latest_keys)))[-10:]
index[r] = keys
client.put_object(Bucket=BUCKET, Key='imgs.json', Body=json.dumps(index),