Tiny tweak

This commit is contained in:
Aaron Louie 2020-03-11 15:31:23 -04:00
parent 3262833102
commit f177e33ad6
1 changed files with 2 additions and 3 deletions

View File

@ -8,9 +8,8 @@ from crc.models.stats import WorkflowStatsModel, WorkflowStatsModelSchema, TaskE
@auth.login_required
def get_workflow_stats(workflow_id):
schema = WorkflowStatsModelSchema()
workflow_model = session.query(WorkflowStatsModel).filter_by(id=workflow_id).first()
return schema.dump(workflow_model)
workflow_model = session.query(WorkflowStatsModel).filter_by(workflow_id=workflow_id).first()
return WorkflowStatsModelSchema().dump(workflow_model)
@auth.login_required