Add order_by to packager count query
No real idea why SQLite is returning wrong results without out this, but it is likely a bug in the ORM layer I'm not interested in digging into. Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
8734d6ccdf
commit
f913bbcab4
@ -32,8 +32,8 @@ def get_annotated_maintainers():
|
||||
pkg_count[k] = total
|
||||
flag_count[k] = flagged
|
||||
|
||||
update_count = Package.objects.values_list('packager').annotate(
|
||||
Count('packager'))
|
||||
update_count = Package.objects.values_list('packager').order_by(
|
||||
'packager').annotate(Count('packager'))
|
||||
update_count = dict(update_count)
|
||||
|
||||
for m in maintainers:
|
||||
|
Loading…
Reference in New Issue
Block a user