From 79aef280ddf0c704fd40d0077822a8ff7548437e Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sun, 15 Dec 2013 13:22:41 -0600 Subject: 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 --- mirrors/models.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mirrors/models.py') 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() -- cgit v1.2.3-54-g00ecf