Commit 3e8c0ab2 authored by panos's avatar panos

Ammendments to Data Extraction script

parent b7eb65d3
...@@ -37,7 +37,7 @@ def DataExtraction(DBFilePath): ...@@ -37,7 +37,7 @@ def DataExtraction(DBFilePath):
""") """)
#create a dictionary called data and put inside two lists (orders and stations) and a dictionary called WIP #create a dictionary called data and put inside two lists (orders and stations) and a dictionary called WIP
data={} data={}
data['orders']=[] data['productionOrders']=[]
data['WIP']={} data['WIP']={}
data['stations']=[] data['stations']=[]
productionOrders={} productionOrders={}
...@@ -153,8 +153,7 @@ def DataExtraction(DBFilePath): ...@@ -153,8 +153,7 @@ def DataExtraction(DBFilePath):
#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
data['orders'].append(productionOrders.copy()) data['productionOrders'].append(productionOrders.copy())
print data # print data
return data return data
DataExtraction("C:\Users\Panos\Documents\DB_Approach\JobShop")
\ No newline at end of file
\ 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