Commit bc2581e2 authored by Administrator's avatar Administrator
Browse files

Use constructor of Meta correctly

parent 36ff1a14
...@@ -201,7 +201,7 @@ class Protocol(DatabaseModel): ...@@ -201,7 +201,7 @@ class Protocol(DatabaseModel):
for default_meta in self.protocoltype.metas: for default_meta in self.protocoltype.metas:
if default_meta.key in remarks: if default_meta.key in remarks:
value = remarks[default_meta.key].value.strip() value = remarks[default_meta.key].value.strip()
meta = Meta(,, value) meta = Meta(,, value=value)
db.session.add(meta) db.session.add(meta)
db.session.commit() db.session.commit()
Supports Markdown
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