Commit 8f8c3b40 authored by panos's avatar panos

Bug fixed in the script

parent 8850afb0
...@@ -148,8 +148,9 @@ def DataExtraction(DBFilePath): ...@@ -148,8 +148,9 @@ def DataExtraction(DBFilePath):
data['WIP'][code]['sequence']=ind3.step data['WIP'][code]['sequence']=ind3.step
timeIn=datetime.strptime(str(ind3.TIMEIN), '%Y-%m-%d %H:%M:%S') timeIn=datetime.strptime(str(ind3.TIMEIN), '%Y-%m-%d %H:%M:%S')
data['WIP'][code]['timeIn']=str(timeIn) data['WIP'][code]['timeIn']=str(timeIn)
timeOut=datetime.strptime(str(ind3.TIMEOUT), '%Y-%m-%d %H:%M:%S') if ind3.TIMEOUT:
data['WIP'][code]['timeOut']=str(timeOut) timeOut=datetime.strptime(str(ind3.TIMEOUT), '%Y-%m-%d %H:%M:%S')
data['WIP'][code]['timeOut']=str(timeOut)
#in case the status is 'finished' continue to the next order #in case the status is 'finished' continue to the next order
elif status == 'finished': elif status == 'finished':
continue continue
......
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