summaryrefslogtreecommitdiffstats
path: root/mirrors/views.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-11-10 17:09:51 -0600
committerDan McGee <dan@archlinux.org>2012-11-11 14:36:14 -0600
commita358e132886972dc4e9f1f546e36a5f3a2218a39 (patch)
tree5443b12922e987f9a9afee5492703cbdce516e13 /mirrors/views.py
parentaeeb4718e83cd2f82d94b1aa0c0ba36ba21a2b37 (diff)
downloadarchweb-a358e132886972dc4e9f1f546e36a5f3a2218a39.tar.gz
archweb-a358e132886972dc4e9f1f546e36a5f3a2218a39.zip
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 4b9721dc..be01e919 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))