Commit 0dd0c506 authored by panos's avatar panos

Script added to extract the data from the workplan and input it in the database

parent 1abbe737
......@@ -54,7 +54,10 @@ def dataExtraction(File):
partType=sheet.cell(i,7).value
operation=sheet.cell(i,8).value
capacityRequired=sheet.cell(i,9).value
earliestStart=datetime.datetime.utcfromtimestamp((sheet.cell(i,10).value - 25569) * 86400.0)
if sheet.cell(i,10).value:
earliestStart=datetime.datetime.utcfromtimestamp((sheet.cell(i,10).value - 25569) * 86400.0)
else:
earliestStart=None
workplan[orderId][wpId]=[]
workplan[orderId][wpId].insert(0, partId)
......
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