souhlas s použitím fotek

This commit is contained in:
Martin Quarda 2024-10-07 12:46:38 +02:00
parent 9d7ec16787
commit e94304f1bf
2 changed files with 5 additions and 2 deletions

View File

@ -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:

View File

@ -162,7 +162,8 @@ class Main extends Component {
<div>
<form id="form" action="/api/upload_files" class="container" onSubmit={(e) => this.onSubmit(e)}>
<label>Zvolte soubory <input type="file" name="files" accept=".jpg,.png,.webp,.webm,.avi,.mkv,.mp4" multiple={true} onChange={(e)=> this.handleChangeFiles.bind(this)(e)}/></label>
<button type="submit" class="btn btn-primary">Nahrát</button> <b>progress: {(this.state.uploadProgress * 100).toFixed(1)}%</b>
<button type="submit" class="btn btn-primary">Nahrát</button><b>progress: {(this.state.uploadProgress * 100).toFixed(1)}%</b><br />
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.
</form>
</div>}
{this.state.page == "#payment" &&