summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2014-03-20 17:52:53 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2014-03-20 17:52:53 +0000
commita0719076dde1264d4ecee2c9a01922f2ff372f84 (patch)
tree055cfcd35745488a2a5d2c80e7c2fb15aee79619
parent20686abba651526c23f042fc4551893b6a7d7e81 (diff)
downloadlorry-controller-a0719076dde1264d4ecee2c9a01922f2ff372f84.tar.gz
Add missing timestamp for list-jobs template
-rwxr-xr-xlorry-controller-webapp7
1 files changed, 5 insertions, 2 deletions
diff --git a/lorry-controller-webapp b/lorry-controller-webapp
index 2fc0118..c6690cf 100755
--- a/lorry-controller-webapp
+++ b/lorry-controller-webapp
@@ -1050,8 +1050,11 @@ class ListAllJobsHTML(LorryControllerRoute):
def run(self, **kwargs):
logging.info('%s %s called', self.http_method, self.path)
statedb = self.open_statedb()
- job_infos = self.get_jobs(statedb)
- return bottle.template(templates['list-jobs'], job_infos=job_infos)
+ values = {
+ 'job_infos': self.get_jobs(statedb),
+ 'timestamp': time.strftime('%Y-%m-%d %H:%M:%S UTC', time.gmtime()),
+ }
+ return bottle.template(templates['list-jobs'], **values)
def get_jobs(self, statedb):
jobs = []