Updated for views

This commit is contained in:
Dimitris Zlatanidis 2023-05-09 22:56:31 +03:00
parent 65f1fe50b8
commit 687640c73e

View file

@ -47,7 +47,7 @@ class ViewMessage(Configs):
def view_packages(self, package: str, mode: str) -> None:
""" Printing the main packages. """
size: str = ''
size: str = str()
color: str = self.red
if self.is_binary:
@ -83,7 +83,6 @@ class ViewMessage(Configs):
def _package_and_version(self, package: str) -> str:
installed_package: str = self.utils.is_package_installed(package)
version: str = self.utils.split_binary_pkg(installed_package)[1]
return f'{package}-{version}'
def view_skipping_packages(self, package: str, version: str) -> None:
@ -146,7 +145,7 @@ class ViewMessage(Configs):
for pkg in packages:
pkgs.append(pkg)
requires = self.session.query(
requires: tuple = self.session.query(
LogsDependencies.requires).filter(
LogsDependencies.name == pkg).first()