mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-31 10:26:39 +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:
|
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
|
||||||
|
|
Loading…
Reference in a new issue