Commit 10a18e19 authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Fix creating localtops when uploading a protocol

parent 6409b034
......@@ -725,7 +725,7 @@ def upload_new_protocol():
protocol = Protocol(protocoltype_id=protocoltype.id, source=source)
db.session.add(protocol)
db.session.commit()
for local_top in protocol.create_localtops:
for local_top in protocol.create_localtops():
db.session.add(local_top)
db.session.commit()
tasks.parse_protocol(protocol)
......
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