Skip to content

Commit b0ff2c7

Browse files
committed
fix validator_jobs error
1 parent 3639b0f commit b0ff2c7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

qiita_pet/handlers/admin_processing_job.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,12 @@ def get(self):
8686
outputs = []
8787
if job.status == 'success':
8888
outputs = [[k, v.id] for k, v in job.outputs.items()]
89-
validator_jobs = [v.id for v in job.validator_jobs]
89+
validator_jobs = [v.id for v in job.validator_jobs]
9090

91-
if job.heartbeat is not None:
92-
heartbeat = job.heartbeat.strftime('%Y-%m-%d %H:%M:%S')
93-
else:
94-
heartbeat = 'N/A'
91+
if job.heartbeat is not None:
92+
heartbeat = job.heartbeat.strftime('%Y-%m-%d %H:%M:%S')
93+
else:
94+
heartbeat = 'N/A'
9595

9696
jobs.append([job.id, job.command.name, job.status, msg,
9797
outputs, validator_jobs, heartbeat,

0 commit comments

Comments
 (0)