From 49bf4988794c39095a9513c32ea971d5bcf5d33d Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sat, 1 Jun 2013 09:21:42 -0500 Subject: 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 --- mirrors/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mirrors/views.py') 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: -- cgit v1.2.3-55-g3dc8