|
@ -35,8 +35,10 @@ class UploadForm(FlaskForm): |
|
|
title = RadioField( |
|
|
title = RadioField( |
|
|
"title", choices=[("side a", "side a"), ("side b", "side b")], default="side a" |
|
|
"title", choices=[("side a", "side a"), ("side b", "side b")], default="side a" |
|
|
) |
|
|
) |
|
|
author = RadioField( |
|
|
authors = RadioField( |
|
|
"author", choices=[("side a", "side a"), ("side b", "side b")], default="side a" |
|
|
"authors", |
|
|
|
|
|
choices=[("side a", "side a"), ("side b", "side b")], |
|
|
|
|
|
default="side a", |
|
|
) |
|
|
) |
|
|
comments = RadioField( |
|
|
comments = RadioField( |
|
|
"comments", |
|
|
"comments", |
|
@ -86,7 +88,7 @@ def upload(): |
|
|
os.path.join(CWD, "metadatum", metadata_name) |
|
|
os.path.join(CWD, "metadatum", metadata_name) |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
fields = ["title", "author", "comments", "timestamp", "tags"] |
|
|
fields = ["title", "authors", "comments", "timestamp", "tags"] |
|
|
side_a = [ |
|
|
side_a = [ |
|
|
field |
|
|
field |
|
|
for field in upload_form.data.keys() |
|
|
for field in upload_form.data.keys() |
|
|