Skip to content
Snippets Groups Projects
Commit 7535edf7 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

MAINT: rename filter function

parent 96ae0ada
No related branches found
No related tags found
2 merge requests!217TST: Make NamedTemporaryFiles Windows-compatible,!210TST: Make NamedTemporaryFiles Windows-compatible
Pipeline #59683 failed
......@@ -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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment