summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-06-01 09:21:42 -0500
committerDan McGee <dan@archlinux.org>2013-06-01 14:53:17 -0500
commit49bf4988794c39095a9513c32ea971d5bcf5d33d (patch)
treed1ec60c17e9416762b5e7048f8f3a8b06e4e332c /public
parent31bc66e23c2ea0467d2201b86536f161fd1f32ca (diff)
downloadarchweb-49bf4988794c39095a9513c32ea971d5bcf5d33d.tar.gz
archweb-49bf4988794c39095a9513c32ea971d5bcf5d33d.zip
Ensure only active mirror URLs are listed
This fixes things up on the download page as well as the individual mirror details page. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'public')
-rw-r--r--public/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/views.py b/public/views.py
index 39273396..24edd044 100644
--- a/public/views.py
+++ b/public/views.py
@@ -80,7 +80,7 @@ def _mirror_urls():
'''In order to ensure this is lazily evaluated since we can't do
sorting at the database level, make it a callable.'''
urls = MirrorUrl.objects.select_related('mirror').filter(
- protocol__default=True,
+ active=True, protocol__default=True,
mirror__public=True, mirror__active=True, mirror__isos=True)
sort_by = attrgetter('country.name', 'mirror.name')
return sorted(urls, key=sort_by)