From 1575fc02ad847a63743917a806ba96e37c6396b7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20tom=20W=C3=B6rden?= <h.tomwoerden@indiscale.com>
Date: Thu, 16 May 2024 11:29:09 +0200
Subject: [PATCH] DOC: add explanation

---
 src/caoscrawler/sync_node.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/caoscrawler/sync_node.py b/src/caoscrawler/sync_node.py
index 1d07351b..26dbb411 100644
--- a/src/caoscrawler/sync_node.py
+++ b/src/caoscrawler/sync_node.py
@@ -87,6 +87,9 @@ class SyncNode:
 
         parents are added if they are not yet in the list
         properties are added in any case. This may lead to duplication of properties.
+        We allow this duplication here and remove it when we create a db.Entity (export_entity
+        function) because if property values are SyncNode objects, they might not be comparable (no
+        ID, no identifiable) yet.
         """
 
         if other.identifiable is not None and self.identifiable is not None:
-- 
GitLab