Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
downloads: stop fetching literally all the revisions just to count them
  • Loading branch information
delroth committed Jul 21, 2018
1 parent fa2fe32 commit a66feb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dolweb/downloads/views.py
Expand Up @@ -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)

Expand Down

0 comments on commit a66feb7

Please sign in to comment.