summaryrefslogtreecommitdiff
path: root/cron/handler.py
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2019-12-17 15:22:24 +0200
committerYuval Adam <_@yuv.al>2019-12-17 15:22:24 +0200
commit49b5321c30c267dccb768807dd2f79d3c96bef1f (patch)
tree1025377c28587f08a021e8a9ae5d27f9428e04f5 /cron/handler.py
parent475a911bbdce871bfc5f4f56ab4cc15805b8606b (diff)
Fix sorting function
Diffstat (limited to 'cron/handler.py')
-rw-r--r--cron/handler.py2
1 files changed, 1 insertions, 1 deletions
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 = []