Commit ef2757b7 authored by Georgios Dagkakis's avatar Georgios Dagkakis

correction in plugins

parent 9d3783e1
...@@ -21,7 +21,8 @@ class AddBatchStations(plugin.InputPreparationPlugin): ...@@ -21,7 +21,8 @@ class AddBatchStations(plugin.InputPreparationPlugin):
standardBatchUnits=0 standardBatchUnits=0
for node_id, node in nodes.iteritems(): for node_id, node in nodes.iteritems():
if node['_class']=='Dream.BatchSource': if node['_class']=='Dream.BatchSource':
standardBatchUnits=int(node['numberOfUnits']) print node
standardBatchUnits=int(node['batchNumberOfUnits'])
# loop in BatchScrapMachines to change the classes if need be # loop in BatchScrapMachines to change the classes if need be
for node_id, node in nodes.iteritems(): for node_id, node in nodes.iteritems():
......
...@@ -22,7 +22,7 @@ class BatchesWIPSpreadsheet(plugin.InputPreparationPlugin): ...@@ -22,7 +22,7 @@ class BatchesWIPSpreadsheet(plugin.InputPreparationPlugin):
standardBatchUnits=0 standardBatchUnits=0
for node_id, node in nodes.iteritems(): for node_id, node in nodes.iteritems():
if node['_class']=='Dream.BatchSource': if node['_class']=='Dream.BatchSource':
standardBatchUnits=int(node['numberOfUnits']) standardBatchUnits=int(node['batchNumberOfUnits'])
node['wip']=[] node['wip']=[]
if wipData: if wipData:
......
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