Updated for coding style

This commit is contained in:
Dimitris Zlatanidis 2023-03-30 00:13:51 +03:00
parent e07a1170cf
commit 7b9d3614f1

View file

@ -51,6 +51,14 @@ class BinQueries(Configs):
return ()
def all_pkg_and_required(self) -> list:
""" Returns all package with the dependencies. """
required: list = self.session.query(
BinariesTable.name, BinariesTable.required).where(
BinariesTable.repo == self.repo).all()
return required
def repository(self) -> str:
""" Return the repository name fo the package. """
repository: tuple = self.session.query(
@ -197,11 +205,3 @@ class BinQueries(Configs):
if desc:
return desc[0]
return ''
def all_pkg_and_required(self) -> list:
""" Returns all package with the dependencies. """
required: list = self.session.query(
BinariesTable.name, BinariesTable.required).where(
BinariesTable.repo == self.repo).all()
return required