Merge pull request #372 from sartography/bug/resort-refactor

Returns workflow spec categories ordered by display order
This commit is contained in:
Mike Cullerton 2021-09-14 11:21:27 -04:00 committed by GitHub
commit d2cbb5076e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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):