|
@@ -64,7 +64,6 @@ def get_jm_job_infos(token_data: schemas.TokenData = Depends(verify_users), db:
|
|
history = history[0:10]
|
|
history = history[0:10]
|
|
history.sort(key=lambda x: x['start_time'], reverse=False)
|
|
history.sort(key=lambda x: x['start_time'], reverse=False)
|
|
jm_job_dict.update({'history':history})
|
|
jm_job_dict.update({'history':history})
|
|
- print(jm_job)
|
|
|
|
requirements_status = get_requirements_status_by_job_id(db,jm_job.id)
|
|
requirements_status = get_requirements_status_by_job_id(db,jm_job.id)
|
|
jm_job_dict.update({'requirements_status': 0 if requirements_status else 1})
|
|
jm_job_dict.update({'requirements_status': 0 if requirements_status else 1})
|
|
res_list.append(jm_job_dict)
|
|
res_list.append(jm_job_dict)
|