cellarspoon
3 years ago
No known key found for this signature in database
GPG Key ID: 3789458B3D0C410
1 changed files with
4 additions and
0 deletions
-
app.py
|
|
@ -50,8 +50,12 @@ def upload(): |
|
|
|
metadata_fpath = os.path.join(CWD, "metadatum", filename) |
|
|
|
f.save(metadata_fpath) |
|
|
|
|
|
|
|
# FIXME: fix naming of files |
|
|
|
|
|
|
|
pdf = os.path.join(CWD, "static", "generated", "{}.pdf".format(filename)) |
|
|
|
metadata = "sqlite:///{}".format(os.path.join(CWD, "metadatum", filename)) |
|
|
|
|
|
|
|
# FIXME: remove hardcoding, feed fields in |
|
|
|
make_cards( |
|
|
|
pdf, metadata, ["title", "timestamp", "comments", "authors"], ["tags"] |
|
|
|
) |
|
|
|