summaryrefslogtreecommitdiffstats
path: root/mirrors/views.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-11-11 00:09:51 +0100
committerDan McGee <dan@archlinux.org>2012-11-11 21:36:14 +0100
commita358e132886972dc4e9f1f546e36a5f3a2218a39 (patch)
tree5443b12922e987f9a9afee5492703cbdce516e13 /mirrors/views.py
parentaeeb4718e83cd2f82d94b1aa0c0ba36ba21a2b37 (diff)
downloadarchweb-a358e132886972dc4e9f1f546e36a5f3a2218a39.tar.gz
archweb-a358e132886972dc4e9f1f546e36a5f3a2218a39.tar.xz
Mirror status graph, now with points AND lines
We might have to tweak the interpolation method once we see this with real data, but for now it looks really pretty locally. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'mirrors/views.py')
-rw-r--r--mirrors/views.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mirrors/views.py b/mirrors/views.py
index 4b9721d..be01e91 100644
--- a/mirrors/views.py
+++ b/mirrors/views.py
@@ -267,7 +267,8 @@ class ExtendedMirrorStatusJSONEncoder(MirrorStatusJSONEncoder):
if isinstance(obj, MirrorUrl):
data = super(ExtendedMirrorStatusJSONEncoder, self).default(obj)
cutoff = now() - DEFAULT_CUTOFF
- data['logs'] = obj.logs.filter(check_time__gte=cutoff)
+ data['logs'] = obj.logs.filter(
+ check_time__gte=cutoff).order_by('check_time')
return data
if isinstance(obj, MirrorLog):
data = dict((attr, getattr(obj, attr))