mirror of
https://github.com/dkmstr/openuds.git
synced 2024-12-22 13:34:04 +03:00
Small utility method fix to allow None Search
This commit is contained in:
parent
7b5e87dd15
commit
029224c749
@ -176,7 +176,7 @@ def filter_list_by_attr(lst: list[T], attribute: str, value: typing.Any) -> list
|
||||
"""
|
||||
Returns a list of items from a list of items
|
||||
"""
|
||||
return [item for item in lst if getattr(item, attribute) == value]
|
||||
return [item for item in lst if getattr(item, attribute) == value or value is None]
|
||||
|
||||
def check_userinterface_values(obj: ui.UserInterface, values: ui.gui.ValuesDictType) -> None:
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user