Commit 8b1959fc authored by Administrator's avatar Administrator

[FIX] Hyperdata is created now.

parent 048f004a
......@@ -39,9 +39,9 @@ for name_, type_ in hyperdata.items():
).first()
)
if hyperdata is None:
print('Hyper Data' + name + 'does not existe, creating it')
hyperdata = Hyperdata(name=name, type=type_name)
if data is None:
print('Hyper Data' + name_ + 'does not existe, creating it')
hyperdata = Hyperdata(name=name_, type=type_)
session.add(hyperdata)
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