Commit 1cd8a6b3 authored by Georgios Dagkakis's avatar Georgios Dagkakis

Batch plugin to be able to work even if there are no operators

parent a63bfcbd
......@@ -18,11 +18,13 @@ class BatchesOperatorSpreadsheet(plugin.OutputPreparationPlugin):
scheduleSheet.write(rowIndex,3,'End Time',headingStyle)
rowIndex+=1
solutionList=None
# get the result the the router gives
for element in data['result']['result_list'][-1]['elementList']:
if element['_class']=='Dream.SkilledRouter':
solutionList=element['results']['solutionList']
if solutionList:
# create a list with all the operator ids that were at least in one allocation
operatorList=[]
for record in solutionList:
......
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