Skip to content
Snippets Groups Projects
Commit a30af390 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

ENH: keep all property attributes

parent f08bd180
Branches
Tags
2 merge requests!178FIX: #96 Better error output for crawl.py script.,!167Sync Graph
Pipeline #51824 failed
...@@ -151,7 +151,9 @@ class SyncNode(db.Entity): ...@@ -151,7 +151,9 @@ class SyncNode(db.Entity):
for p in self.properties: for p in self.properties:
entval: Any = ent.get_property(p) entval: Any = ent.get_property(p)
if entval is None: if entval is None:
ent.add_property(id=p.id, name=p.name, value=p.value) ent.add_property(id=p.id, name=p.name, value=p.value, description=p.description,
datatype=p.datatype, unit=p.unit, importance=p.importance,
inheritance=p.inheritance)
else: else:
entval = entval.value entval = entval.value
unequal = False unequal = False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment