summaryrefslogtreecommitdiff
path: root/cron
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2017-11-18 17:40:00 +0200
committerYuval Adam <_@yuv.al>2017-11-18 17:40:00 +0200
commitf3b7cc1b3f896462ef0ceac646308d08a2dab3a9 (patch)
tree006c7e77c343b6f2e6f9f1f30ced41852b15fcad /cron
parentf09a791a0acf9d668d6322d887c1519afaac964f (diff)
Fix key bug in update function
Diffstat (limited to 'cron')
-rw-r--r--cron/handler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cron/handler.py b/cron/handler.py
index 64f96e8..47d81bb 100644
--- a/cron/handler.py
+++ b/cron/handler.py
@@ -21,7 +21,7 @@ def geshem_update():
try:
latest_imgs = client.list_objects_v2(Bucket=BUCKET, Prefix=IMG_PREFIX, StartAfter=IMG_PREFIX + yesterday)['Contents']
- latest_keys = [i.Key for i in latest_imgs]
+ latest_keys = [i['Key'] for i in latest_imgs]
except KeyError:
latest_keys = []