mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Fix string comparisons
This commit is contained in:
parent
32fcc79dd8
commit
4065a1204a
3 changed files with 4 additions and 4 deletions
|
@ -53,7 +53,7 @@ class AuthorsModel(ListModel):
|
|||
|
||||
# Filter on all the key-word arguments.
|
||||
for key, value in self._filter.items():
|
||||
if key is "package_types":
|
||||
if key == "package_types":
|
||||
key_filter = lambda item, value = value: value in item["package_types"] # type: ignore
|
||||
elif "*" in value:
|
||||
key_filter = lambda item, key = key, value = value: self._matchRegExp(item, key, value) # type: ignore
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue