Updated for coding style

This commit is contained in:
Dimitris Zlatanidis 2023-05-08 13:19:54 +03:00
parent 27a52b7fd5
commit c07098648d

View file

@ -9,8 +9,8 @@ from slpkg.models.models import session as Session
class BinQueries: class BinQueries:
""" Queries class for the binary repositories. """ """ Queries class for the binary repositories. """
def __init__(self, repo: str): def __init__(self, repository: str):
self.repo: str = repo self.repository: str = repository
self.session = Session self.session = Session
self.utils = Utilities() self.utils = Utilities()
@ -19,7 +19,7 @@ class BinQueries:
""" Returns a dictionary with the repository data. """ """ Returns a dictionary with the repository data. """
repository_data: tuple = self.session.query( repository_data: tuple = self.session.query(
BinariesTable).where( BinariesTable).where(
BinariesTable.repo == self.repo).all() BinariesTable.repo == self.repository).all()
repos_dict: dict = { repos_dict: dict = {
data.name: (data.version, # 0 data.name: (data.version, # 0