Skip to content
Snippets Groups Projects
Commit c0717a3e authored by Florian Spreckelsen's avatar Florian Spreckelsen
Browse files

Merge branch 'dev' into f-refactor-pipe

parents 83677633 60203584
Branches
No related tags found
2 merge requests!217TST: Make NamedTemporaryFiles Windows-compatible,!211F refactor pipe
Pipeline #59883 passed
...@@ -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