diff options
author | Dan McGee <dan@archlinux.org> | 2012-05-13 19:45:57 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-05-13 19:45:57 -0500 |
commit | 76516cae45f3d1080065608bdb8f2d086322012f (patch) | |
tree | a2b072b7befe50022139635a6404bcb0768437de /mirrors | |
parent | a5f5557493446bede78adb0584c88208234f874e (diff) |
Don't limit protocols returned by mirror status function
If results weren't available for certain URLs, they won't show up anyway
in this list, and if we start to check rsync URLs, then we want their
values to come back in this status list.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'mirrors')
-rw-r--r-- | mirrors/utils.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/mirrors/utils.py b/mirrors/utils.py index 32fa3587..54de567e 100644 --- a/mirrors/utils.py +++ b/mirrors/utils.py @@ -32,11 +32,9 @@ def annotate_url(url, delays): @cache_function(123) def get_mirror_statuses(cutoff=default_cutoff): cutoff_time = utc_now() - cutoff - 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, - protocol__in=protocols, logs__check_time__gte=cutoff_time).annotate( check_count=Count('logs'), success_count=Count('logs__duration'), |