Skip to content

Commit

Permalink
Only subqueryload latest_workflow instead of all workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Oct 23, 2017
1 parent cfe3dfc commit dd60926
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/managers/workflows.py
Expand Up @@ -56,7 +56,7 @@ def get_stored_workflow(self, trans, workflow_id):
filter(trans.app.model.StoredWorkflow.id == workflow_id)
stored_workflow = workflow_query.options(joinedload('annotations'),
joinedload('tags'),
subqueryload('workflows').joinedload('steps').joinedload('*')).first()
subqueryload('latest_workflow').joinedload('steps').joinedload('*')).first()
if stored_workflow is None:
raise exceptions.ObjectNotFound("No such workflow found.")
return stored_workflow
Expand Down

0 comments on commit dd60926

Please sign in to comment.