summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-07-09 04:53:35 +0200
committerDan McGee <dan@archlinux.org>2012-07-09 04:53:35 +0200
commit9c7350650e66b5eb6228778e335a160be5ea7f98 (patch)
treeb1f86ac2af8a544e88146f3ea2f8510b5f5b494b
parentd7c0ae9b555ff45d0cbaca09f4f427c7e1758d4f (diff)
downloadarchweb-9c7350650e66b5eb6228778e335a160be5ea7f98.tar.gz
archweb-9c7350650e66b5eb6228778e335a160be5ea7f98.tar.xz
Correctly reassign queryset with added annotation in mirror status
This was a dumb oversight on my part in commit 0f3c894e7a0. Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--mirrors/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mirrors/utils.py b/mirrors/utils.py
index 9aa8e0f..f2c98ee 100644
--- a/mirrors/utils.py
+++ b/mirrors/utils.py
@@ -44,7 +44,7 @@ def get_mirror_statuses(cutoff=default_cutoff):
vendor = database_vendor(MirrorUrl)
if vendor != 'sqlite':
- urls.annotate(duration_stddev=StdDev('logs__duration'))
+ urls = urls.annotate(duration_stddev=StdDev('logs__duration'))
# The Django ORM makes it really hard to get actual average delay in the
# above query, so run a seperate query for it and we will process the