From 52690fdd9a63b21b37016bc6f5c45a9365e907be Mon Sep 17 00:00:00 2001 From: Frank Haverland Date: Mon, 6 Feb 2023 20:15:47 +0100 Subject: [PATCH] fix loading imager after v14 of AIonedge #12 --- collectmeterdigits/collect.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/collectmeterdigits/collect.py b/collectmeterdigits/collect.py index 9b1b92f..4e9e51e 100644 --- a/collectmeterdigits/collect.py +++ b/collectmeterdigits/collect.py @@ -56,6 +56,8 @@ def readimages(servername, output_dir, daysback=15): path = output_dir + "/" + servername + "/" + picturedate + "/" + hour os.makedirs(path, exist_ok=True) for url in urls: + if (url[-4] != 'jpg'): + continue prefix = os.path.basename(url).split('_', 1)[0] if (prefix == os.path.basename(url)): prefix = ''