summaryrefslogtreecommitdiff
path: root/lorrycontroller/listjobs.py
diff options
context:
space:
mode:
Diffstat (limited to 'lorrycontroller/listjobs.py')
-rw-r--r--lorrycontroller/listjobs.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/lorrycontroller/listjobs.py b/lorrycontroller/listjobs.py
index eaffeef..f9747c9 100644
--- a/lorrycontroller/listjobs.py
+++ b/lorrycontroller/listjobs.py
@@ -52,12 +52,11 @@ class ListAllJobsHTML(lorrycontroller.LorryControllerRoute):
def get_jobs(self, statedb):
jobs = []
- for job_id in statedb.get_job_ids():
- exit = statedb.get_job_exit(job_id)
+ for job_id, path, exit in statedb.get_all_jobs_id_path_exit():
job = {
'job_id': job_id,
'exit': 'no' if exit is None else str(exit),
- 'path': statedb.get_job_path(job_id),
+ 'path': path,
}
jobs.append(job)
return jobs