Commit 132faea4 authored by Jérome Perrin's avatar Jérome Perrin

Fix bug reading the WIP when two jobs are in the same queue

parent 0e648c23
...@@ -10,7 +10,7 @@ class Simulation(DefaultSimulation): ...@@ -10,7 +10,7 @@ class Simulation(DefaultSimulation):
continue continue
sequence_list = value_list[6].split('-') sequence_list = value_list[6].split('-')
processing_time_list = value_list[7].split('-') processing_time_list = value_list[7].split('-')
wip_dict[sequence_list[0]] = [ wip_dict.setdefault(sequence_list[0], []).append(
{ {
"_class": "Dream.Job", "_class": "Dream.Job",
"id": value_list[1], "id": value_list[1],
...@@ -29,7 +29,7 @@ class Simulation(DefaultSimulation): ...@@ -29,7 +29,7 @@ class Simulation(DefaultSimulation):
"stepNumber": i "stepNumber": i
} for i in xrange(len(sequence_list))] } for i in xrange(len(sequence_list))]
} }
] )
for node_id in data['nodes'].keys(): for node_id in data['nodes'].keys():
if node_id in wip_dict: if node_id in wip_dict:
data['nodes'][node_id]['wip'] = wip_dict[node_id] data['nodes'][node_id]['wip'] = wip_dict[node_id]
......
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