From 38483610d645b4ccc623fedc341b831d96f09de6 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 15:46:48 +0200
Subject: [PATCH] MAINT: inherit syncnode

---
 src/caoscrawler/identifiable_adapters.py | 4 ++--
 src/caoscrawler/sync_node.py             | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/caoscrawler/identifiable_adapters.py b/src/caoscrawler/identifiable_adapters.py
index 02bd6ac2..517bc974 100644
--- a/src/caoscrawler/identifiable_adapters.py
+++ b/src/caoscrawler/identifiable_adapters.py
@@ -445,8 +445,8 @@ class IdentifiableAdapter(metaclass=ABCMeta):
             return False
 
         appropriate_types = []
-        appropriate_types.extend(get_children_of_rt(
-            register_identifiable.get_property("is_referenced_by").value))
+        for rt in register_identifiable.get_property("is_referenced_by").value:
+            appropriate_types.extend(get_children_of_rt(rt))
         appropriate_types = [el.lower() for el in appropriate_types]
         if "*" in appropriate_types:
             return True
diff --git a/src/caoscrawler/sync_node.py b/src/caoscrawler/sync_node.py
index f2fa000b..0dc674ad 100644
--- a/src/caoscrawler/sync_node.py
+++ b/src/caoscrawler/sync_node.py
@@ -47,7 +47,7 @@ class TempID(int):
     pass
 
 
-class SyncNode:
+class SyncNode(db.Entity):
     """represents the information of an Entity as it shall be created in LinkAhead
 
     The following information is taken from an db.Entity object during initialization or when the
@@ -69,7 +69,7 @@ class SyncNode:
 
     def __init__(
         self, entity: db.Entity, registered_identifiable: Optional[db.RecordType] = None
-    ) -> None:
+    ):
         # db.Entity properties
         self.id: Union[int, TempID, str] = entity.id
         self.role = entity.role
-- 
GitLab