allow 3 symbols for package search

This commit is contained in:
Evgenii Alekseev 2022-12-30 01:39:46 +02:00
parent 81d9526054
commit cd3d12a754

View File

@ -72,7 +72,7 @@ class Remote(LazyLogging):
""" """
instance = cls() instance = cls()
packages: Dict[str, AURPackage] = {} packages: Dict[str, AURPackage] = {}
for term in filter(lambda word: len(word) > 3, keywords): for term in filter(lambda word: len(word) >= 3, keywords):
portion = instance.search(term, pacman=pacman) portion = instance.search(term, pacman=pacman)
packages = { packages = {
package.name: package # not mistake to group them by name package.name: package # not mistake to group them by name