diff options
author | eliott <eliott@cactuswax.net> | 2008-04-04 08:28:55 +0200 |
---|---|---|
committer | eliott <eliott@cactuswax.net> | 2008-04-04 08:28:55 +0200 |
commit | 15a2e4e1122c012d1de065477a4cf7b9b2c410a4 (patch) | |
tree | b3582d429f8c7e62031b2c37d6dc73ffc2bc7d85 | |
parent | d5cf1141bb884e690c43f255bb8031d133c35344 (diff) | |
download | archweb-15a2e4e1122c012d1de065477a4cf7b9b2c410a4.tar.gz archweb-15a2e4e1122c012d1de065477a4cf7b9b2c410a4.tar.xz |
Partial fix for FS#9554
-rw-r--r-- | packages/models.py | 6 | ||||
-rw-r--r-- | 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 @@ <th width="50%">Maintainer</th> <th># Package</th> <th># Flagged</th> + <th># Flagged notesting</th> </tr> {% for maint in stats %} <tr class="{% cycle pkgr2,pkgr1 %}"> <td><a href="/packages/?maint={{ maint.0.id }}">{{ maint.0.get_full_name }}</a></td> <td><strong>{{ maint.1 }}</strong> packages</td> <td><strong>{{ maint.2 }}</strong> packages</td> + <td><strong>{{ maint.3 }}</strong> packages</td> </tr> {% endfor %} </table> |