Commit 1ac1e8fe authored by panos's avatar panos

Bugs fixed in the scripts for the preparation of the DB approach

parent 67f6ffc5
......@@ -171,9 +171,9 @@ class Demo1(Frame):
ind2=a.fetchone()
lastWP =ind2.WP_id
b = cursor[2].execute("""
select sequence.WP_id, sequence.Order_id
from sequence where Operation_Name=?
""", self.operationOption.get())
select WP_id
from sequence where Operation_Name=? and Order_id=?
""", self.operationOption.get(),order)
ind4=b.fetchone()
status2 = 'finished'
row = cursor[0].fetchone()
......
......@@ -351,6 +351,4 @@ def DataExtraction(DBFilePath):
del data['WIP']['ASBTST_id' + orderID]
except KeyError:
continue
return data
print DataExtraction('C:\Users\Panos\Documents\DB_Approach\CapacityStations')
\ No newline at end of file
return data
\ No newline at end of file
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