From 49b5321c30c267dccb768807dd2f79d3c96bef1f Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Tue, 17 Dec 2019 15:22:24 +0200 Subject: Fix sorting function --- cron/handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cron/handler.py b/cron/handler.py index 84a4071..3652880 100644 --- a/cron/handler.py +++ b/cron/handler.py @@ -27,7 +27,7 @@ class GeshemUpdate(): def get_latest_images(self): imgres = self.session.get(self.BASE_URL) imgs = list(set(re.findall(r"radar280comp_\d+.png", imgres.text))) - return sorted(imgs[-10:]) + return sorted(imgs)[-10:] def get_latest_bucket_keys(self): latest_keys = [] -- cgit v1.3.1