Process categories in get_study api call

This commit is contained in:
mike cullerton 2022-03-18 16:05:01 -04:00
parent f4d6b07467
commit eaf8dace97

View File

@ -109,7 +109,7 @@ def get_study(study_id, update_status=False):
if update_status:
study_model = session.query(StudyModel).filter(StudyModel.id == study_id).first()
master_workflow_results = __run_master_spec(study_model, spec_service.master_spec)
study = StudyService().get_study(study_id, categories, master_workflow_results=master_workflow_results)
study = StudyService().get_study(study_id, categories, master_workflow_results=master_workflow_results, process_categories=True)
if (study is None):
raise ApiError("unknown_study", 'The study "' + study_id + '" is not recognized.', status_code=404)
return StudySchema().dump(study)