diff options
author | Dan McGee <dan@archlinux.org> | 2012-09-24 21:23:18 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-09-24 21:23:18 -0500 |
commit | a1c4d831c92cbb32cb8c34f95b8cd5eb541cdf00 (patch) | |
tree | 624c8572ba5e9e3d28349f48fc5b3c275ecade5e /devel/views.py | |
parent | 05f309d7e57a66d9309abbf19b4328bad514b978 (diff) |
Exclude inactive developers in maintainer countrelease_2012-09-24
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'devel/views.py')
-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 ea85a901..083665d9 100644 --- a/devel/views.py +++ b/devel/views.py @@ -56,7 +56,8 @@ def index(request): repos = Repo.objects.all().annotate( total_ct=Count('packages'), flagged_ct=Count('packages__flag_date')) # the join is huge unless we do this separately, so merge the result here - repo_maintainers = dict(Repo.objects.all().values_list('id').annotate( + repo_maintainers = dict(Repo.objects.order_by().filter( + userprofile__user__is_active=True).values_list('id').annotate( Count('userprofile'))) for repo in repos: repo.maintainer_ct = repo_maintainers.get(repo.id, 0) |