This commit is contained in:
cellarspoon 2021-12-06 12:22:57 +01:00
parent 98e0a930cf
commit e78408e6f4
No known key found for this signature in database
GPG Key ID: 03789458B3D0C410

4
app.py
View File

@ -50,8 +50,12 @@ def upload():
metadata_fpath = os.path.join(CWD, "metadatum", filename) metadata_fpath = os.path.join(CWD, "metadatum", filename)
f.save(metadata_fpath) f.save(metadata_fpath)
# FIXME: fix naming of files
pdf = os.path.join(CWD, "static", "generated", "{}.pdf".format(filename)) pdf = os.path.join(CWD, "static", "generated", "{}.pdf".format(filename))
metadata = "sqlite:///{}".format(os.path.join(CWD, "metadatum", filename)) metadata = "sqlite:///{}".format(os.path.join(CWD, "metadatum", filename))
# FIXME: remove hardcoding, feed fields in
make_cards( make_cards(
pdf, metadata, ["title", "timestamp", "comments", "authors"], ["tags"] pdf, metadata, ["title", "timestamp", "comments", "authors"], ["tags"]
) )