[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

@@ -8,6 +8,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
### Fixes
- AppImage
- regression on the database backend preventing long time installed AppImages to receive updates
- UI
- regression from `0.10.6`: "name" filter not working for packages whose names contain the typed words
## [0.10.6] 2023-12-23
### Features

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)