Commit 4325eeb6 authored by Jérome Perrin's avatar Jérome Perrin

DemandPlanningKE: treat MA id as string

parent 19e6cfaf
......@@ -136,8 +136,7 @@ def generateDemandPlanning(input_url):
sheet1.write(0,2,'Total # Units')
sheet1.write(0,3,'Min # Units')
sheet1.write(0,4,'Planned Week')
# XXX
sheet1.write(t,1, int(i[0].replace('MA', '', 1)))
sheet1.write(t,1, (i[0].replace('MA', '', 1)))
sheet1.write(t,2,i[1])
sheet1.write(t,3,i[2])
sheet1.write(t,4,i[3])
......@@ -196,8 +195,7 @@ def generateDemandPlanning(input_url):
sheet2.write(0,4,'Planned Week')
sheet2.write(t,0,t)
# XXX the MA id should not have MA prefix...
sheet2.write(t,1,int(dictPPOSMA[PPOSToBeDisaggregated][i].replace('MA',
'', 1)))
sheet2.write(t,1,dictPPOSMA[PPOSToBeDisaggregated][i].replace('MA', '', 1))
sheet2.write(t,2,dictPPOS[dictPPOSMA[PPOSToBeDisaggregated][i]][0])
sheet2.write(t,3,dictPPOS[dictPPOSMA[PPOSToBeDisaggregated][i]][1])
......
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