1
0
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:
Adolfo Gómez García 2024-05-05 00:23:12 +02:00
parent 7b5e87dd15
commit 029224c749
No known key found for this signature in database
GPG Key ID: DD1ABF20724CDA23

View File

@ -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:
"""