Commit eaaa8047 authored by Georgios Dagkakis's avatar Georgios Dagkakis

tasks to have different ids

parent 18801ee9
...@@ -36,7 +36,11 @@ class BatchesOperatorGantt(plugin.OutputPreparationPlugin, TimeSupportMixin): ...@@ -36,7 +36,11 @@ class BatchesOperatorGantt(plugin.OutputPreparationPlugin, TimeSupportMixin):
open=False) open=False)
k=1 k=1
schedule=element['results']['schedule']
schedule.append({
"entranceTime": 90.0,
"stationId": "M1"
})
for record in schedule: for record in schedule:
entranceTime=record['entranceTime'] entranceTime=record['entranceTime']
try: try:
...@@ -44,8 +48,8 @@ class BatchesOperatorGantt(plugin.OutputPreparationPlugin, TimeSupportMixin): ...@@ -44,8 +48,8 @@ class BatchesOperatorGantt(plugin.OutputPreparationPlugin, TimeSupportMixin):
except IndexError: except IndexError:
exitTime=maxSimTime exitTime=maxSimTime
k+=1 k+=1
task_dict[operatorId+record['stationId']] = dict( task_dict[operatorId+record['stationId']+str(k)] = dict(
id=operatorId+record['stationId'], id=operatorId+record['stationId']+str(k),
parent=operatorId, parent=operatorId,
text=record['stationId'], text=record['stationId'],
start_date=self.convertToRealWorldTime( start_date=self.convertToRealWorldTime(
......
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