mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-05 11:02:14 +01:00
Updated for coding style
This commit is contained in:
parent
e07a1170cf
commit
7b9d3614f1
1 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue