From a15a9dc7359b63cd7eecf5b4050e9004350e60b3 Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Mon, 21 Oct 2013 02:24:18 +0200 Subject: [PATCH] added get_job_list to interface --- linspector/core/interface.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/linspector/core/interface.py b/linspector/core/interface.py index 9f88cac..abff4bb 100644 --- a/linspector/core/interface.py +++ b/linspector/core/interface.py @@ -58,6 +58,13 @@ class LinspectorInterface(object): d["Fails"] = str(job.jobThreshold) return d + def get_job_list(self): + job_list = [] + for job in self.jobs: + d = self.get_job_info_dict(job) + job_list.append(d) + return job_list + def get_enabled_layouts(self): self._config.get_enabled_layouts()