Fix string comparisons

This commit is contained in:
Lipu Fei 2019-04-12 08:52:35 +02:00
parent 32fcc79dd8
commit 4065a1204a
3 changed files with 4 additions and 4 deletions

View file

@ -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)