Commit 4f64c8fe authored by Jerome Mariette's avatar Jerome Mariette
Browse files

fix a bug with outputs

parent 87f93b65
......@@ -401,7 +401,7 @@ class JFlowServer (object):
@cherrypy.expose
@jsonify
def get_workflow_outputs(self, **kwargs):
on_disk_outputs, on_web_outputs = self.wfmanager.get_workflow_ouputs(kwargs["workflow_id"]), {}
on_disk_outputs, on_web_outputs = self.wfmanager.get_workflow_outputs(kwargs["workflow_id"]), {}
for cpt_name in on_disk_outputs.keys():
on_web_outputs[cpt_name] = {}
for outf in on_disk_outputs[cpt_name]:
......
......@@ -139,6 +139,10 @@ class WorkflowsManager(object):
def get_output_directory(self):
return self.config_reader.get_work_directory()
def get_workflow_outputs(self, workflow_id):
workflow = self.get_workflow(workflow_id)
return workflow.get_outputs_per_components()
def get_workflows(self, use_cache=False):
from jflow.workflow import Workflow
workflows = []
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment