Stats décroissantes
This commit is contained in:
parent
d8df1064e7
commit
4c97c8e420
1 changed files with 1 additions and 1 deletions
|
@ -294,7 +294,7 @@ def statistiques(request):
|
||||||
nbymatiere[npm["matieres__nom"]]["publics" if npm["public"] else "drafts"] = npm["scount"]
|
nbymatiere[npm["matieres__nom"]]["publics" if npm["public"] else "drafts"] = npm["scount"]
|
||||||
for mat, npm in nbymatiere.items():
|
for mat, npm in nbymatiere.items():
|
||||||
npm["matiere"] = mat
|
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(),
|
nbylength = [("Vide", Stage.objects.filter(len_avis_stage__lt=5).count(),
|
||||||
Stage.objects.filter(len_avis_lieux__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(),
|
("Court", Stage.objects.filter(len_avis_stage__lt=30, len_avis_stage__gt=4).count(),
|
||||||
|
|
Loading…
Reference in a new issue