cellarspoon
3 years ago
No known key found for this signature in database
GPG Key ID: 3789458B3D0C410
1 changed files with
14 additions and
2 deletions
-
app.py
|
@ -78,11 +78,23 @@ def upload(): |
|
|
os.path.join(CWD, "metadatum", metadata_name) |
|
|
os.path.join(CWD, "metadatum", metadata_name) |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
fields = ["title", "author", "comments", "timestamp", "tags"] |
|
|
|
|
|
side_a = [ |
|
|
|
|
|
field |
|
|
|
|
|
for field in upload_form.data.keys() |
|
|
|
|
|
if field in fields and upload_form.data[field] == "side a" |
|
|
|
|
|
] |
|
|
|
|
|
side_b = [ |
|
|
|
|
|
field |
|
|
|
|
|
for field in upload_form.data.keys() |
|
|
|
|
|
if field in fields and upload_form.data[field] == "side b" |
|
|
|
|
|
] |
|
|
|
|
|
|
|
|
make_cards( |
|
|
make_cards( |
|
|
pdf_path, |
|
|
pdf_path, |
|
|
metadata_conn, |
|
|
metadata_conn, |
|
|
["title", "timestamp", "comments", "authors"], |
|
|
side_a, |
|
|
["tags"], |
|
|
side_b, |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
gen_msg = ( |
|
|
gen_msg = ( |
|
|