From e94304f1bfbaa1162ed7c23f2ff7df58274a9c87 Mon Sep 17 00:00:00 2001 From: Martin Quarda Date: Mon, 7 Oct 2024 12:46:38 +0200 Subject: [PATCH] =?UTF-8?q?souhlas=20s=20pou=C5=BEit=C3=ADm=20fotek?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- alkatorapi/views.py | 4 +++- frontend/src/scripts/index.js | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/alkatorapi/views.py b/alkatorapi/views.py index f22795c..11c5497 100644 --- a/alkatorapi/views.py +++ b/alkatorapi/views.py @@ -193,7 +193,9 @@ def results(request): def photos(request): rtn = [] - for (i, name) in ALKATOR_CLASSES: + classes = ALKATOR_CLASSES.copy() + classes.reverse() + for (i, name) in classes: files = glob.glob(f"photos/{i}/*.jpg") random.shuffle(files) for file in files: diff --git a/frontend/src/scripts/index.js b/frontend/src/scripts/index.js index 38b23fb..cbeb250 100644 --- a/frontend/src/scripts/index.js +++ b/frontend/src/scripts/index.js @@ -162,7 +162,8 @@ class Main extends Component {
this.onSubmit(e)}> - progress: {(this.state.uploadProgress * 100).toFixed(1)}% + progress: {(this.state.uploadProgress * 100).toFixed(1)}%
+ Nahráním fotek/videí nám dávate souhlas s použitím vaších fotek k propagaci a zvěřejněním na stránkách.
} {this.state.page == "#payment" &&