Updated for count

This commit is contained in:
Dimitris Zlatanidis 2023-04-24 17:29:32 +03:00
parent 8fbce945e3
commit 71452122e7

View file

@ -57,10 +57,10 @@ class RepoInfo(Configs):
status: str = 'Enabled' status: str = 'Enabled'
color: str = self.green color: str = self.green
if repo in [self.repos.sbo_repo_name, self.repos.ponce_repo_name]: if repo in [self.repos.sbo_repo_name, self.repos.ponce_repo_name]:
count = self.session.query(SBoTable.id).count() count = self.session.query(SBoTable.id).count()
else: else:
count = self.session.query(BinariesTable).where(BinariesTable.repo == repo).count() count = self.session.query(BinariesTable).where(BinariesTable.repo == repo).count()
total_packages += count total_packages += count