mirror of
https://github.com/sartography/cr-connect-workflow.git
synced 2025-02-23 21:28:32 +00:00
Merge pull request #372 from sartography/bug/resort-refactor
Returns workflow spec categories ordered by display order
This commit is contained in:
commit
d2cbb5076e
@ -317,7 +317,7 @@ def __update_task(processor, task, data, user):
|
|||||||
|
|
||||||
def list_workflow_spec_categories():
|
def list_workflow_spec_categories():
|
||||||
schema = WorkflowSpecCategoryModelSchema(many=True)
|
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):
|
def get_workflow_spec_category(cat_id):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user