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