Show top 10 pictures (off-by-one, ancient uncommitted change)
This commit is contained in:
parent
c194b9220e
commit
339cdb0568
|
@ -78,6 +78,6 @@ def refresh(request):
|
||||||
|
|
||||||
|
|
||||||
def top(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 }
|
context = { "top": top }
|
||||||
return HttpResponse(render(request, 'pt/top.html', context))
|
return HttpResponse(render(request, 'pt/top.html', context))
|
||||||
|
|
Loading…
Reference in New Issue