mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
Updated for count
This commit is contained in:
parent
8fbce945e3
commit
71452122e7
1 changed files with 4 additions and 4 deletions
|
@ -57,10 +57,10 @@ class RepoInfo(Configs):
|
|||
status: str = 'Enabled'
|
||||
color: str = self.green
|
||||
|
||||
if repo in [self.repos.sbo_repo_name, self.repos.ponce_repo_name]:
|
||||
count = self.session.query(SBoTable.id).count()
|
||||
else:
|
||||
count = self.session.query(BinariesTable).where(BinariesTable.repo == repo).count()
|
||||
if repo in [self.repos.sbo_repo_name, self.repos.ponce_repo_name]:
|
||||
count = self.session.query(SBoTable.id).count()
|
||||
else:
|
||||
count = self.session.query(BinariesTable).where(BinariesTable.repo == repo).count()
|
||||
|
||||
total_packages += count
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue