Commit 31f8d8db authored by Jiahang Chen's avatar Jiahang Chen

fix joblist bug

parent bcbd9406
Pipeline #366011 passed with stages
in 1 minute and 2 seconds
......@@ -20,5 +20,7 @@ class JobList(Job):
def to_json(self):
self.__json_out = super().to_json()
if self.jobs:
self.__json_out["jobs"] = self.jobs
self.__json_out["jobs"] = list()
for job in self.jobs:
self.__json_out["jobs"].append(job.to_json())
return self.__json_out
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment