diff options
-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 bce638df..cc3b279e 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 afbec25a..939e7ecd 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> |