Skip to content

Commit

Permalink
Merge pull request #13 from haverland/dev
Browse files Browse the repository at this point in the history
fix loading imager after v14 of AIonedge #12
  • Loading branch information
haverland authored Feb 6, 2023
2 parents 67405c1 + 52690fd commit e0fad59
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions collectmeterdigits/collect.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ''
Expand Down

0 comments on commit e0fad59

Please sign in to comment.