Returns workflow spec categories ordered by display order

sorry to open a whole branch just for this little fix
This commit is contained in:
alicia pritchett 2021-09-14 10:56:41 -04:00
parent c9113965f0
commit a7f032d372
1 changed files with 1 additions and 1 deletions

View File

@ -317,7 +317,7 @@ def __update_task(processor, task, data, user):
def list_workflow_spec_categories():
schema = WorkflowSpecCategoryModelSchema(many=True)
return schema.dump(session.query(WorkflowSpecCategoryModel).all())
return schema.dump(session.query(WorkflowSpecCategoryModel).order_by(WorkflowSpecCategoryModel.display_order).all())
def get_workflow_spec_category(cat_id):