From 339cdb056854c854a2504a5794c9b57b02c9fdda Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Sun, 29 Aug 2021 10:03:18 +0200 Subject: [PATCH] Show top 10 pictures (off-by-one, ancient uncommitted change) --- pt/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pt/views.py b/pt/views.py index 3b5e67d..561d19c 100644 --- a/pt/views.py +++ b/pt/views.py @@ -78,6 +78,6 @@ def refresh(request): def top(request): - top = models.Picture.objects.all().order_by("-elo")[0:9] + top = models.Picture.objects.all().order_by("-elo")[0:10] context = { "top": top } return HttpResponse(render(request, 'pt/top.html', context))