mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
Updated for typing
This commit is contained in:
parent
d2a78b79f9
commit
2be33d8780
1 changed files with 2 additions and 2 deletions
|
@ -78,7 +78,7 @@ class Check(Configs):
|
||||||
self.errors.raise_error_message("You need to update the package lists first, run:\n\n"
|
self.errors.raise_error_message("You need to update the package lists first, run:\n\n"
|
||||||
f"{'':>14}$ slpkg update", exit_status=1)
|
f"{'':>14}$ slpkg update", exit_status=1)
|
||||||
|
|
||||||
def count_of_repositories(self):
|
def count_of_repositories(self) -> None:
|
||||||
for repository, item in self.repos.repositories.items():
|
for repository, item in self.repos.repositories.items():
|
||||||
if item['path'] and item['enable']:
|
if item['path'] and item['enable']:
|
||||||
if self.utils.is_binary_repo(repository):
|
if self.utils.is_binary_repo(repository):
|
||||||
|
@ -87,7 +87,7 @@ class Check(Configs):
|
||||||
else:
|
else:
|
||||||
self.count_rows += self.session.query(self.sbo_table[repository].id).count()
|
self.count_rows += self.session.query(self.sbo_table[repository].id).count()
|
||||||
|
|
||||||
def count_of_repository(self):
|
def count_of_repository(self) -> None:
|
||||||
if self.is_binary:
|
if self.is_binary:
|
||||||
self.count_rows: int = self.session.query(
|
self.count_rows: int = self.session.query(
|
||||||
BinariesTable.id).where(BinariesTable.repo == self.repository).count()
|
BinariesTable.id).where(BinariesTable.repo == self.repository).count()
|
||||||
|
|
Loading…
Add table
Reference in a new issue