From 1845a1cd14bc479037d19eab6d00270962e5ce88 Mon Sep 17 00:00:00 2001 From: raquelpanapalen <57674236+raquelpanapalen@users.noreply.github.com> Date: Sun, 22 Mar 2020 20:53:25 +0100 Subject: [PATCH] Update views.py --- stats/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stats/views.py b/stats/views.py index 7b4a5344..5573f170 100644 --- a/stats/views.py +++ b/stats/views.py @@ -61,10 +61,10 @@ def app_stats_api(request): origin_count = Application.objects.all().values('origin') \ .annotate(applications=Count('origin')) \ - .order_by('applications')[:10] + .order_by('-applications')[:10] origin_count_confirmed = Application.objects.filter(status=APP_CONFIRMED).values('origin') \ .annotate(applications=Count('origin')) \ - .order_by('applications')[:10] + .order_by('-applications')[:10] tshirt_dict = dict(a_models.TSHIRT_SIZES) shirt_count = map(