Commit f931f02e authored by Georgios Dagkakis's avatar Georgios Dagkakis

option to choose WIP source in batches input

parent a7556349
......@@ -15,6 +15,9 @@ class BatchesWIPKEtool(plugin.InputPreparationPlugin):
"""
def preprocess(self, data):
if data['general'].get('wipSource',None)=='Manually':
return data
nodes=data['graph']['node']
# get the number of units for a standard batch
......
......@@ -13,12 +13,12 @@ class BatchesWIPShort(plugin.InputPreparationPlugin):
"""
def preprocess(self, data):
if data['general'].get('wipSource',None)=='By KE':
return data
nodes=data['graph']['node']
WIPData=data['input'].get(self.configuration_dict['input_id'], {})
batchCounter=0
from pprint import pprint
# get the number of units for a standard batch
standardBatchUnits=0
for node_id, node in nodes.iteritems():
......
......@@ -15,6 +15,9 @@ class BatchesWIPSpreadsheet(plugin.InputPreparationPlugin):
def preprocess(self, data):
""" Set the WIP in queue from spreadsheet data.
"""
if data['general'].get('wipSource',None)=='By KE':
return data
wipData=data['input'].get('wip_spreadsheet', None)
nodes=data['graph']['node']
......
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