mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-29 10:26:12 +01:00
Updated for coding style
This commit is contained in:
parent
27a52b7fd5
commit
c07098648d
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue