From 7b9d3614f175332242192a906e2f906c785eaf7d Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Thu, 30 Mar 2023 00:13:51 +0300 Subject: [PATCH] Updated for coding style --- slpkg/binaries/queries.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/slpkg/binaries/queries.py b/slpkg/binaries/queries.py index cc462def..97eaa36c 100644 --- a/slpkg/binaries/queries.py +++ b/slpkg/binaries/queries.py @@ -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