From a30af390353f3b56a0e9358b41296d16cdffb688 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20tom=20W=C3=B6rden?= <h.tomwoerden@indiscale.com> Date: Thu, 6 Jun 2024 16:46:45 +0200 Subject: [PATCH] ENH: keep all property attributes --- src/caoscrawler/sync_node.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/caoscrawler/sync_node.py b/src/caoscrawler/sync_node.py index e20a4e96..eae8ea9e 100644 --- a/src/caoscrawler/sync_node.py +++ b/src/caoscrawler/sync_node.py @@ -151,7 +151,9 @@ class SyncNode(db.Entity): for p in self.properties: entval: Any = ent.get_property(p) 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: entval = entval.value unequal = False -- GitLab