Returns workflow spec categories ordered by display order
sorry to open a whole branch just for this little fix
This commit is contained in:
parent
c9113965f0
commit
a7f032d372
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue