[view.qt] fix: 'name' filter not working for packages whose names contain the typed word

This commit is contained in:
Vinicius Moreira
2024-01-08 15:24:14 -03:00
parent d9bfc63b4e
commit c44ab712ff
2 changed files with 3 additions and 1 deletions

View File

@@ -129,7 +129,7 @@ def query_packages(index: dict, filters: PackageFilters) -> Generator[PackageVie
continue
# checking if the package name contains the chars query
if query[5] in pkgv.model.name:
if query[6] in pkgv.model.name:
yield pkgv
yield_count += 1
yielded_pkgs[pkgv.model.get_type()].add(pkgv.model.id)