From 4c97c8e420d04ed031715e33ba0c17737b7e333f Mon Sep 17 00:00:00 2001 From: Evarin Date: Sun, 9 Sep 2018 00:22:28 +0200 Subject: [PATCH] =?UTF-8?q?Stats=20d=C3=A9croissantes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- avisstage/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/avisstage/views.py b/avisstage/views.py index 6a7ed85..f9c92a9 100644 --- a/avisstage/views.py +++ b/avisstage/views.py @@ -294,7 +294,7 @@ def statistiques(request): nbymatiere[npm["matieres__nom"]]["publics" if npm["public"] else "drafts"] = npm["scount"] for mat, npm in nbymatiere.items(): npm["matiere"] = mat - nbymatiere = sorted(list(nbymatiere.values()), key=lambda npm: npm.get("publics", 0)) + nbymatiere = sorted(list(nbymatiere.values()), key=lambda npm: -npm.get("publics", 0)) nbylength = [("Vide", Stage.objects.filter(len_avis_stage__lt=5).count(), Stage.objects.filter(len_avis_lieux__lt=5).count()), ("Court", Stage.objects.filter(len_avis_stage__lt=30, len_avis_stage__gt=4).count(),