From 15a2e4e1122c012d1de065477a4cf7b9b2c410a4 Mon Sep 17 00:00:00 2001 From: eliott Date: Thu, 3 Apr 2008 23:28:55 -0700 Subject: Partial fix for FS#9554 --- packages/models.py | 6 ++++-- templates/devel/index.html | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/models.py b/packages/models.py index bce638d..cc3b279 100644 --- a/packages/models.py +++ b/packages/models.py @@ -8,12 +8,14 @@ class PackageManager(models.Manager): # first the orphans unflagged = self.filter(maintainer=0).count() flagged = self.filter(maintainer=0).filter(needupdate=True).count() - results.append((User(id=0,first_name='Orphans'), unflagged, flagged)) + flagged_notest = self.filter(maintainer=0).filter(needupdate=True).exclude(repo__name__exact='Testing').count() + results.append((User(id=0,first_name='Orphans'), unflagged, flagged, flagged_notest)) # now the rest for maint in User.objects.all().order_by('first_name'): unflagged = self.filter(maintainer=maint.id).count() flagged = self.filter(maintainer=maint.id).filter(needupdate=True).count() - results.append((maint, unflagged, flagged)) + flagged_notest = self.filter(maintainer=maint.id).filter(needupdate=True).exclude(repo__name__exact='Testing').count() + results.append((maint, unflagged, flagged, flagged_notest)) return results class Category(models.Model): diff --git a/templates/devel/index.html b/templates/devel/index.html index afbec25..939e7ec 100644 --- a/templates/devel/index.html +++ b/templates/devel/index.html @@ -48,12 +48,14 @@ Maintainer # Package # Flagged + # Flagged notesting {% for maint in stats %} {{ maint.0.get_full_name }} {{ maint.1 }} packages {{ maint.2 }} packages + {{ maint.3 }} packages {% endfor %} -- cgit v1.2.3-24-g4f1b