summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-12-28 05:51:20 +0100
committerDan McGee <dan@archlinux.org>2012-12-28 05:51:20 +0100
commite7c331d361e0b6b5c9fb498793953119afcbf741 (patch)
tree3d8fb711525da4d54a0cc0acde410f909dadc82f
parent0a501af0801a8809683c1931d6a1a18ddd863545 (diff)
downloadarchweb-e7c331d361e0b6b5c9fb498793953119afcbf741.tar.gz
archweb-e7c331d361e0b6b5c9fb498793953119afcbf741.tar.xz
Fix master key signing total counts
Commit 4c69911982 had an inadvertent side effect here; we need to explicitly disable ordering for the annotate() to work correctly. Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--public/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/views.py b/public/views.py
index fefe032..44ceb45 100644
--- a/public/views.py
+++ b/public/views.py
@@ -122,7 +122,7 @@ def keys(request):
master_key_ids = frozenset(key.pgp_key[-16:] for key in master_keys)
sig_counts = PGPSignature.objects.filter(not_expired, valid=True,
- signee__in=user_key_ids).values_list('signer').annotate(
+ signee__in=user_key_ids).order_by().values_list('signer').annotate(
Count('signer'))
sig_counts = {key_id[-16:]: ct for key_id, ct in sig_counts}