From 3b50909ada16ecbc2c7bf9e70dc8bd9a8a311517 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20tom=20W=C3=B6rden?= <h.tomwoerden@indiscale.com> Date: Wed, 15 May 2024 09:22:12 +0200 Subject: [PATCH] doc+remove of unnecessary code --- src/caoscrawler/sync_node.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/caoscrawler/sync_node.py b/src/caoscrawler/sync_node.py index f3f7996c..5dd8baf7 100644 --- a/src/caoscrawler/sync_node.py +++ b/src/caoscrawler/sync_node.py @@ -38,6 +38,11 @@ logger = logging.getLogger(__name__) class TempID(int): + """A special kind of int for negative temporary IDs. + + This allows to identify TempIDs in the presence of String IDs. + A string ID might look like a negative integer. + """ pass @@ -129,8 +134,6 @@ class SyncNode: for p in self.parents: ent.add_parent(p) for p in self.properties: - if p is None: - continue entval: Any = ent.get_property(p) if entval is None: ent.add_property(id=p.id, name=p.name, value=p.value) -- GitLab