Fix number of packages without blocked

Fixes: https://pagure.io/koji/issue/3328
This commit is contained in:
Jana Cupova 2022-04-19 10:33:10 +02:00 committed by Tomas Kopecek
parent 76e430ceb8
commit 507317d070

View file

@ -987,9 +987,10 @@ def taginfo(environ, tagID, all='0', packageOrder='package_name', packageStart=N
all = int(all)
numPackages = server.count('listPackages', tagID=tag['id'], inherited=True, with_owners=False)
numPackages = server.count('listPackages', tagID=tag['id'], inherited=True, with_owners=False,
with_blocked=False)
numPackagesBlocked = server.count('listPackages', tagID=tag['id'], inherited=True,
with_owners=False, with_blocked=True)
with_owners=False)
numBuilds = server.count('listTagged', tag=tag['id'], inherit=True)
values['numPackages'] = numPackages
values['numPackagesBlocked'] = numPackagesBlocked