Commit fdf1600d authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Fix add_internal_filename call

parent e652c814
......@@ -771,7 +771,7 @@ def upload_new_protocol_by_file():
db.session.add(document)
db.session.commit()
internal_filename = get_internal_filename(
protocol.id, document.id, filename)
protocol, document.id, filename)
document.filename = internal_filename
file.save(os.path.join(config.DOCUMENTS_PATH, internal_filename))
db.session.commit()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment