Skip to content
Permalink
Browse files

downloads: stop fetching literally all the revisions just to count them

  • Loading branch information...
delroth committed Jul 21, 2018
1 parent fa2fe32 commit a66feb7b03cb2808283c45d580bffbf6549a4293
Showing with 1 addition and 1 deletion.
  1. +1 −1 dolweb/downloads/views.py
@@ -67,7 +67,7 @@ def list(request, branch, page):
if page is None:
page = 1
builds = DevVersion.objects.filter(branch=branch).order_by('-date')
if len(builds) == 0 and branch != 'master':
if builds.count() == 0 and branch != 'master':
get_object_or_404(BranchInfo, name=branch)
pagi = DiggPaginator(builds, 20, body=9, tail=2)

0 comments on commit a66feb7

Please sign in to comment.
You can’t perform that action at this time.