From f3b7cc1b3f896462ef0ceac646308d08a2dab3a9 Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Sat, 18 Nov 2017 17:40:00 +0200 Subject: Fix key bug in update function --- cron/handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cron/handler.py') 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 = [] -- cgit v1.3.1