Skip to content
Snippets Groups Projects
Commit 60203584 authored by Alexander Schlemmer's avatar Alexander Schlemmer
Browse files

Merge branch 'f-rename-filter' into 'dev'

TST: Make NamedTemporaryFiles Windows-compatible

See merge request !210
parents 96ae0ada 3a230581
No related branches found
No related tags found
2 merge requests!217TST: Make NamedTemporaryFiles Windows-compatible,!210TST: Make NamedTemporaryFiles Windows-compatible
Pipeline #59873 failed
...@@ -256,9 +256,9 @@ class SyncNode(db.Entity): ...@@ -256,9 +256,9 @@ class SyncNode(db.Entity):
def parent_in_list(parent: Parent, plist: ParentList) -> bool: 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""" """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: 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""" """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.
Please register or to comment