summaryrefslogtreecommitdiffstats
path: root/mirrors/views.py
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 /mirrors/views.py
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 'mirrors/views.py')
-rw-r--r--mirrors/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mirrors/views.py b/mirrors/views.py
index 6f4ad838..ec056696 100644
--- a/mirrors/views.py
+++ b/mirrors/views.py
@@ -161,7 +161,7 @@ def mirror_details(request, name):
status_info = get_mirror_statuses(mirror_id=mirror.id)
checked_urls = {url for url in status_info['urls'] \
if url.mirror_id == mirror.id}
- all_urls = set(mirror.urls.select_related('protocol'))
+ all_urls = set(mirror.urls.filter(active=True).select_related('protocol'))
# Add dummy data for URLs that we haven't checked recently
other_urls = all_urls.difference(checked_urls)
for url in other_urls: