Commit cb32d681 authored by Georgios Dagkakis's avatar Georgios Dagkakis

set default for wip column in case somebody changes the label

parent 2d8f9e99
...@@ -17,6 +17,7 @@ class CapacityStationWIP(plugin.InputPreparationPlugin): ...@@ -17,6 +17,7 @@ class CapacityStationWIP(plugin.InputPreparationPlugin):
""" """
projectData=data['input'].get('projects_spreadsheet', None) projectData=data['input'].get('projects_spreadsheet', None)
# find the column where the WIP is given # find the column where the WIP is given
wipColumn=6 #default
i=0 i=0
for element in projectData[0]: for element in projectData[0]:
if element=='WIP': if element=='WIP':
......
...@@ -8,6 +8,7 @@ class ChangeWIPSpreadsheet(plugin.InputPreparationPlugin): ...@@ -8,6 +8,7 @@ class ChangeWIPSpreadsheet(plugin.InputPreparationPlugin):
def preprocess(self, data): def preprocess(self, data):
projectData=data['input'].get('projects_spreadsheet', None) projectData=data['input'].get('projects_spreadsheet', None)
# find the column where the WIP is given # find the column where the WIP is given
wipColumn=6 #default
i=0 i=0
for element in projectData[0]: for element in projectData[0]:
if element=='Completed': if element=='Completed':
...@@ -15,6 +16,7 @@ class ChangeWIPSpreadsheet(plugin.InputPreparationPlugin): ...@@ -15,6 +16,7 @@ class ChangeWIPSpreadsheet(plugin.InputPreparationPlugin):
projectData[0][i]='WIP' projectData[0][i]='WIP'
break break
i+=1 i+=1
if projectData: if projectData:
alreadyConsideredProjects=[] alreadyConsideredProjects=[]
for row in range(1, len(projectData)): for row in range(1, len(projectData)):
......
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