From bb84f9c96cb9df4e47e517f424a28fc36b4bed28 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 30 Sep 2010 14:32:54 -0500 Subject: Use new is_download field Signed-off-by: Dan McGee --- mirrors/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mirrors/utils.py') diff --git a/mirrors/utils.py b/mirrors/utils.py index 0463247..a26b19c 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, -- cgit v1.2.3-24-g4f1b