Commit c82c6ebf authored by Jérome Perrin's avatar Jérome Perrin

Platform: fix results returned by default execution plugin

parent 1e1407cd
......@@ -43,8 +43,7 @@ class DefaultExecutionPlugin(ExecutionPlugin):
def run(self, data):
"""Run simulation and return result to the GUI.
"""
data["result"]["result_list"].append(self.runOneScenario(data))
# data["result"] = self.runOneScenario(data)
data["result"]["result_list"] = self.runOneScenario(data)['result']['result_list']
data["result"]["result_list"][-1]["score"] = 0
data["result"]["result_list"][-1]["key"] = "default"
return data
......
Markdown is supported
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