cellarspoon
3 years ago
No known key found for this signature in database
GPG Key ID: 3789458B3D0C410
2 changed files with
7 additions and
5 deletions
-
app.py
-
templates/index.html
|
|
@ -35,8 +35,10 @@ class UploadForm(FlaskForm): |
|
|
|
title = RadioField( |
|
|
|
"title", choices=[("side a", "side a"), ("side b", "side b")], default="side a" |
|
|
|
) |
|
|
|
author = RadioField( |
|
|
|
"author", choices=[("side a", "side a"), ("side b", "side b")], default="side a" |
|
|
|
authors = RadioField( |
|
|
|
"authors", |
|
|
|
choices=[("side a", "side a"), ("side b", "side b")], |
|
|
|
default="side a", |
|
|
|
) |
|
|
|
comments = RadioField( |
|
|
|
"comments", |
|
|
@ -86,7 +88,7 @@ def upload(): |
|
|
|
os.path.join(CWD, "metadatum", metadata_name) |
|
|
|
) |
|
|
|
|
|
|
|
fields = ["title", "author", "comments", "timestamp", "tags"] |
|
|
|
fields = ["title", "authors", "comments", "timestamp", "tags"] |
|
|
|
side_a = [ |
|
|
|
field |
|
|
|
for field in upload_form.data.keys() |
|
|
|
|
|
@ -37,8 +37,8 @@ |
|
|
|
{{ upload_form.title.label }} |
|
|
|
{{ upload_form.title }} |
|
|
|
|
|
|
|
{{ upload_form.author.label }} |
|
|
|
{{ upload_form.author }} |
|
|
|
{{ upload_form.authors.label }} |
|
|
|
{{ upload_form.authors }} |
|
|
|
|
|
|
|
{{ upload_form.comments.label }} |
|
|
|
{{ upload_form.comments }} |
|
|
|