Commit 90b0e0a7 authored by panos's avatar panos

Data Extraction ammended to fix a bug

parent 6d879bf5
...@@ -91,7 +91,7 @@ def DataExtraction(DBFilePath): ...@@ -91,7 +91,7 @@ def DataExtraction(DBFilePath):
component['route']=[] component['route']=[]
#SQL query that extracts data from sequence table where PartCode is given #SQL query that extracts data from sequence table where PartCode is given
d=cursor[3].execute(""" d=cursor[3].execute("""
select PartCode, PartName, WP_id, Operation_Name, ProcessingTime, PersonnelCode, Quantity, step select PartCode, PartName, WP_id, Operation_Name, ProcessingTime, PersonnelCode, Quantity, step, Completed
from sequence from sequence
where PartCode=? where PartCode=?
""", code) """, code)
...@@ -112,6 +112,7 @@ def DataExtraction(DBFilePath): ...@@ -112,6 +112,7 @@ def DataExtraction(DBFilePath):
step['operator']=ind2.PersonnelCode step['operator']=ind2.PersonnelCode
step['task_id']=ind2.WP_id step['task_id']=ind2.WP_id
step['quantity']=ind2.Quantity step['quantity']=ind2.Quantity
step['completed']=ind2.Completed
ind3=f.fetchone() ind3=f.fetchone()
partsNeeded = ind3.PartsNeeded.split(';') partsNeeded = ind3.PartsNeeded.split(';')
step['requiredParts']=partsNeeded step['requiredParts']=partsNeeded
......
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