From 97a634204f4c12a9f6311ccfeb394abe4685924b Mon Sep 17 00:00:00 2001 From: Martin Quarda Date: Wed, 8 May 2024 11:21:50 +0200 Subject: [PATCH] fix --- alkatorapi/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/alkatorapi/views.py b/alkatorapi/views.py index 0dd3bdf..d266f5a 100644 --- a/alkatorapi/views.py +++ b/alkatorapi/views.py @@ -64,13 +64,13 @@ def results(request): def photos(request): - files = glob.glob("photos/*.webp") + files = glob.glob("photos/*.jpg") rtn = [] for file in files: img = PIL.Image.open(file) rtn.append({ - 'original': '/' + file, - 'thumbnail': '/' + file.replace('photos/', 'photos/thumbnail/'), + 'original': '/' + file.replace(".jpg", ".webp"), + 'thumbnail': '/' + file.replace('photos/', 'photos/thumbnail/').replace(".jpg", ".webp"), 'original_width': img.width, 'original_height': img.height, })