From 7535edf724a7b4b1922e33679655a91b751100a5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20tom=20W=C3=B6rden?= <h.tomwoerden@indiscale.com>
Date: Fri, 10 Jan 2025 10:08:40 +0100
Subject: [PATCH] MAINT: rename filter function

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

diff --git a/src/caoscrawler/sync_node.py b/src/caoscrawler/sync_node.py
index d912d646..46187c0d 100644
--- a/src/caoscrawler/sync_node.py
+++ b/src/caoscrawler/sync_node.py
@@ -256,9 +256,9 @@ class SyncNode(db.Entity):
 
 def parent_in_list(parent: Parent, plist: ParentList) -> bool:
     """helper function that checks whether a parent with the same name or ID is in the plist"""
-    return plist.filter(parent)
+    return plist.filter_by_identity(parent)
 
 
 def property_in_list(prop: db.Property, plist: PropertyList) -> bool:
     """helper function that checks whether a property with the same name or ID is in the plist"""
-    return plist.filter(prop)
+    return plist.filter_by_identity(prop)
-- 
GitLab