summaryrefslogtreecommitdiff
path: root/mirrors/utils.py
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-05-25 19:35:23 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-05-25 19:35:23 -0400
commit824bd93116c4c0a48d7112ae0bceb46e70851df5 (patch)
tree21285571c08e286891b8e7740c543941798fe778 /mirrors/utils.py
parent7ccaa7be630e50ce40182d168d41c2f333005443 (diff)
parent1a1fd4a3d6aa7f6b2338f7751f5f97a30a059a04 (diff)
Merge branch 'archweb-generic' into master-nomake
Conflicts: templates/public/download.html
Diffstat (limited to 'mirrors/utils.py')
-rw-r--r--mirrors/utils.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/mirrors/utils.py b/mirrors/utils.py
index 0dd26ae0..fe18cd6a 100644
--- a/mirrors/utils.py
+++ b/mirrors/utils.py
@@ -88,6 +88,8 @@ def annotate_url(url, url_data):
('success_count', 0),
('check_count', 0),
('completion_pct', None),
+ ('duration_avg', None),
+ ('duration_stddev', None),
('last_check', None),
('last_sync', None),
('delay', None),
@@ -177,7 +179,7 @@ def get_mirror_errors(cutoff=DEFAULT_CUTOFF, mirror_id=None, show_all=False):
errors = list(errors)
for err in errors:
- err['country'] = Country(err['url__country'])
+ err['country'] = Country(err['url__country'], flag_url='')
return errors