diff options
author | Dan McGee <dan@archlinux.org> | 2011-09-19 15:44:22 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-09-19 15:44:22 +0200 |
commit | 797185faed0555efb88a1e6a18e447548a9935fd (patch) | |
tree | ab2169212e085667b79d12ba0b0ca93fd385b246 /main | |
parent | b893682f356ca2861d676a51c4ae1c937d4c7c44 (diff) | |
download | archweb-797185faed0555efb88a1e6a18e447548a9935fd.tar.gz archweb-797185faed0555efb88a1e6a18e447548a9935fd.tar.xz |
Add some dev dashboard info regarding signed package count
This adds a column similar to the flagged package count for the number
of signed packages in a given architecture or repository. It is up to
the user to do some simple math to figure out the number of unsigned
packages.
Also, add 'signed' as a hidden search field option similar to what we
did for packager.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'main')
-rw-r--r-- | main/models.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/main/models.py b/main/models.py index b5cd863..ec1f0d2 100644 --- a/main/models.py +++ b/main/models.py @@ -98,6 +98,10 @@ class PackageManager(models.Manager): """Used by dev dashboard.""" return self.filter(flag_date__isnull=False) + def signed(self): + """Used by dev dashboard.""" + return self.filter(pgp_signature__isnull=False) + def normal(self): return self.select_related('arch', 'repo') |