summaryrefslogtreecommitdiff
path: root/mirrors
diff options
context:
space:
mode:
Diffstat (limited to 'mirrors')
-rw-r--r--mirrors/utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mirrors/utils.py b/mirrors/utils.py
index 07a7138f..a62c7f05 100644
--- a/mirrors/utils.py
+++ b/mirrors/utils.py
@@ -48,7 +48,8 @@ def get_mirror_statuses(cutoff=DEFAULT_CUTOFF, mirror_ids=None):
urls = MirrorUrl.objects.select_related('mirror', 'protocol').filter(
mirror__active=True, mirror__public=True,
- logs__check_time__gte=cutoff_time).order_by('mirror__id', 'url')
+ logs__check_time__gte=cutoff_time).distinct().order_by(
+ 'mirror__id', 'url')
if mirror_ids:
url_data = url_data.filter(mirror_id__in=mirror_ids)