From d088579eba892abd990e47dadf9a64a6d1771b42 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sat, 18 Oct 2014 10:25:10 -0500 Subject: 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 --- devel/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'devel/views.py') 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, -- cgit v1.2.3-54-g00ecf