Updated for naming

This commit is contained in:
Dimitris Zlatanidis 2023-05-16 09:18:44 +03:00
parent 6c9cd9d9a6
commit dd25d2d7c7

View file

@ -73,10 +73,10 @@ class SearchPackage(Configs):
}
def summary_of_searching(self) -> None:
length = max(len(name['name']) for name in self.data_dict.values())
name_length: int = max(len(name['name']) for name in self.data_dict.values())
if self.matching:
for item in self.data_dict.values():
print(f"{item['repository']}: {self.cyan}{item['name']:<{length}}{self.endc} "
print(f"{item['repository']}: {self.cyan}{item['name']:<{name_length}}{self.endc} "
f"{self.yellow}{item['version']}{self.endc}")
print(f'\n{self.grey}Total found {self.matching} packages.{self.endc}')