From 0a043b87adf73d3f2e0a7a38bde9db38cecdbdb7 Mon Sep 17 00:00:00 2001 From: Martin Quarda Date: Wed, 8 May 2024 11:15:39 +0200 Subject: [PATCH] webp --- alkatorapi/views.py | 2 +- frontend/src/scripts/index.js | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/alkatorapi/views.py b/alkatorapi/views.py index d75a482..0dd3bdf 100644 --- a/alkatorapi/views.py +++ b/alkatorapi/views.py @@ -64,7 +64,7 @@ def results(request): def photos(request): - files = glob.glob("photos/*.jpg") + files = glob.glob("photos/*.webp") rtn = [] for file in files: img = PIL.Image.open(file) diff --git a/frontend/src/scripts/index.js b/frontend/src/scripts/index.js index f8e2c75..a470ddc 100644 --- a/frontend/src/scripts/index.js +++ b/frontend/src/scripts/index.js @@ -77,15 +77,14 @@ class Main extends Component { height: photo.original_height, }) }; - console.log(photos, this.state.photos) return (
- {this.state.photoIsOpen ? ( + {this.state.photoIsOpen && - ) : null} + }