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:
""" Queries class for the binary repositories. """
def __init__(self, repo: str):
self.repo: str = repo
def __init__(self, repository: str):
self.repository: str = repository
self.session = Session
self.utils = Utilities()
@ -19,7 +19,7 @@ class BinQueries:
""" Returns a dictionary with the repository data. """
repository_data: tuple = self.session.query(
BinariesTable).where(
BinariesTable.repo == self.repo).all()
BinariesTable.repo == self.repository).all()
repos_dict: dict = {
data.name: (data.version, # 0