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