summaryrefslogtreecommitdiffstats
path: root/mirrors/models.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-12-15 13:22:41 -0600
committerDan McGee <dan@archlinux.org>2013-12-15 13:28:13 -0600
commit79aef280ddf0c704fd40d0077822a8ff7548437e (patch)
tree706e88b3e072402feeb1baee7e6cbaa658226aeb /mirrors/models.py
parent3c7b02753a4f742eeb66b8deea2fc3f179b87b8e (diff)
downloadarchweb-79aef280ddf0c704fd40d0077822a8ff7548437e.tar.gz
archweb-79aef280ddf0c704fd40d0077822a8ff7548437e.zip
Add mirror URL details page
This will allow those that care about mirrors to zoom into URL-level details for each mirror and examine the individual check results. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'mirrors/models.py')
-rw-r--r--mirrors/models.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mirrors/models.py b/mirrors/models.py
index d2c64c51..57664562 100644
--- a/mirrors/models.py
+++ b/mirrors/models.py
@@ -161,6 +161,8 @@ class MirrorLog(models.Model):
error = models.TextField(blank=True, default='')
def delay(self):
+ if self.last_sync is None:
+ return None
# sanity check, this shouldn't happen
if self.check_time < self.last_sync:
return timedelta()