diff options
author | Dan McGee <dan@archlinux.org> | 2014-10-18 10:25:10 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2014-10-18 10:26:26 -0500 |
commit | d088579eba892abd990e47dadf9a64a6d1771b42 (patch) | |
tree | 509d25a1c3ee2dde3c23e7613df045140ba41f36 /devel | |
parent | 91a36e65a3564d9fe265aaea90a895143764f2ba (diff) |
Only show arches/repos that are necessary
After the refactor in commit 7947d36c4, we weren't gathering arches and
repos from the correct list of packages. Fix this.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'devel')
-rw-r--r-- | devel/views.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/devel/views.py b/devel/views.py index 92cb098e..66f6a965 100644 --- a/devel/views.py +++ b/devel/views.py @@ -197,6 +197,7 @@ def report(request, report_name, username=None): maints = User.objects.filter(id__in=PackageRelation.objects.filter( type=PackageRelation.MAINTAINER).values('user')) + packages = report.packages(packages, username) arches = {pkg.arch for pkg in packages} repos = {pkg.repo for pkg in packages} context = { @@ -204,7 +205,7 @@ def report(request, report_name, username=None): 'title': report.description, 'report': report, 'maintainer': user, - 'packages': report.packages(packages, username), + 'packages': packages, 'arches': sorted(arches), 'repos': sorted(repos), 'column_names': report.names, |