summaryrefslogtreecommitdiff
path: root/mirrors/utils.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-09-30 14:32:54 -0500
committerDan McGee <dan@archlinux.org>2010-09-30 14:32:54 -0500
commitbb84f9c96cb9df4e47e517f424a28fc36b4bed28 (patch)
treea5f2dc94861f1262a8743d3ba2c8d060be61536d /mirrors/utils.py
parent3ebe31bdadfcb9c6571b250e53da1f7dd7ebeb66 (diff)
Use new is_download field
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'mirrors/utils.py')
-rw-r--r--mirrors/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mirrors/utils.py b/mirrors/utils.py
index 0463247a..a26b19ce 100644
--- a/mirrors/utils.py
+++ b/mirrors/utils.py
@@ -10,7 +10,7 @@ default_cutoff = datetime.timedelta(hours=24)
@cache_function(300)
def get_mirror_statuses(cutoff=default_cutoff):
cutoff_time = datetime.datetime.utcnow() - cutoff
- protocols = MirrorProtocol.objects.exclude(protocol__iexact='rsync')
+ protocols = list(MirrorProtocol.objects.filter(is_download=True))
# I swear, this actually has decent performance...
urls = MirrorUrl.objects.select_related('mirror', 'protocol').filter(
mirror__active=True, mirror__public=True,