Browse Source

FIXMEs

main
cellarspoon 3 years ago
parent
commit
e78408e6f4
No known key found for this signature in database GPG Key ID: 3789458B3D0C410
  1. 4
      app.py

4
app.py

@ -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"]
) )

Loading…
Cancel
Save