diff options
author | Dan McGee <dan@archlinux.org> | 2012-05-13 20:35:50 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-05-13 20:37:27 -0500 |
commit | ae1c526ffbe908322f0dd8d8805360b81ab22b0f (patch) | |
tree | 8dc77cae76ceaa7838d2d54c3e5a6b1dd50a74f6 /mirrors/utils.py | |
parent | 2f7d770b261b3428bcff366ba6ff4fa631dd980a (diff) |
Add ability to restrict status report to single tierrelease_2012-05-13
This should make it easier to catch errors in our Tier 1 mirrors.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'mirrors/utils.py')
-rw-r--r-- | mirrors/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mirrors/utils.py b/mirrors/utils.py index 54de567e..2014411d 100644 --- a/mirrors/utils.py +++ b/mirrors/utils.py @@ -88,7 +88,7 @@ def get_mirror_errors(cutoff=default_cutoff): is_success=False, check_time__gte=cutoff_time, url__mirror__active=True, url__mirror__public=True).values( 'url__url', 'url__country', 'url__protocol__protocol', - 'url__mirror__country', 'error').annotate( + 'url__mirror__country', 'url__mirror__tier', 'error').annotate( error_count=Count('error'), last_occurred=Max('check_time') ).order_by('-last_occurred', '-error_count') errors = list(errors) |