Browse Source

Merge pull request #2 from cemresarecansiz/patch-4

Update database_append.py
pull/3/head
Yiğit Çolakoğlu 7 years ago
committed by GitHub
parent
commit
554062ad43
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 218 additions and 58 deletions
  1. +218
    -58
      Barcode_Reader_Python/database_append.py

+ 218
- 58
Barcode_Reader_Python/database_append.py View File

@ -13,114 +13,274 @@ data_format_proc = {
}
data_1_prod = {
'Prod_Name': "Milk", 'BBD': "24.08.2018", 'Nutrients': ['Protein', 'Fat', 'Lactose', 'Glucose'],
'Calories': 120, 'Cooked': False, 'Allergens': ['Lactose'], 'Problematic': False,
'Process': 'Pastorized', 'ED': "02.09.2018"
'Prod_Name': "Delitos", 'BBD': "19.12.2018", 'Nutrients': ['Protein', 'Carbohydrate', 'Fibre', 'Soduium', 'Fat', 'Salt'],
'Calories': 160, 'Cooked': True, 'Allergens': ['Lactose','Gluten', 'Nuts'], 'Problematic': False,
'Process': 'Fried', 'ED': "02.09.2018"
}
data_2_prod = {
'Prod_Name': "Chocolate", 'BBD': "28.01.2019", 'Nutrients': ['Lactose', 'Glucose', 'Cocoa'],
'Calories': 180, 'Cooked': False, 'Allergens': ['Cocoa', 'Lactose'], 'Problematic': False, 'Process': 'None', 'ED': "21.02.2019"
'Prod_Name': "Delitos", 'BBD': "18.02.2018", 'Nutrients': ['Protein', 'Carbohydrate', 'Fibre', 'Soduium', 'Fat', 'Salt'], 'Calories': 153, 'Cooked': True 'Allergens': ['Lactose','Gluten', 'Nuts'], 'Problematic': True, 'Process': 'Fried', 'ED': "12.03.2018"
}
data_3_prod = {
'Prod_Name': "Delitos", 'BBD': "19.12.2018", 'Nutrients': ['Protein', 'Carbohydrate', 'Fibre', 'Soduium', 'Fat', 'Salt'],
'Calories': 160, 'Cooked': True, 'Allergens': ['Lactose','Gluten', 'Nuts'], 'Problematic': False,
'Process': 'Fried', 'ED': "02.09.2018"
'Prod_Name': "Delitos", 'BBD': "10.01.2019", 'Nutrients': ['Protein', 'Carbohydrate', 'Fibre', 'Soduium', 'Fat', 'Salt'], 'Calories': 155, 'Cooked': True 'Allergens': ['Lactose','Gluten', 'Nuts'], 'Problematic': False, 'Process':'Fried' , 'ED': "20.02.2019"
}
data_4_prod = {
'Prod_Name': "Gullon Sugar Free Shortbread Biscuits", 'BBD': "02.11.2018", 'Nutrients': ['Protein', 'Carbohydrate', 'Fibre', 'Sodium', 'Fat', 'Sugar', 'Salt'],
'Calories': 439, 'Cooked': True, 'Allergens': ['Lactose', 'Wheat', 'Soya'], 'Problematic': False,
'Process': 'Baking', 'ED': "08.12.2018"
'Prod_Name': "Delitos", 'BBD': "12.12.2018", 'Nutrients': ['Protein', 'Carbohydrate', 'Fibre', 'Soduium', 'Fat', 'Salt'], 'Calories': 161, 'Cooked': True 'Allergens': ['Lactose','Gluten', 'Nuts'], 'Problematic': False, 'Process': 'Fried', 'ED': "12.02.2019"
}
data_5_prod = {
'Prod_Name': Gluten Free Penne Rigate, 'BBD': 18.02.2019, 'Nutrients': ['Protein', 'Carbohydrate', 'Fiber', 'Sodium', 'Fat', 'Salt'], 'Calories': 359,'Cooked': False 'Allergens': ['Wheat'],
'Problematic': False, 'Process': 'Klining', 'ED': 18.02.2020
'Prod_Name': "Delitos", 'BBD': "12.05.2017", 'Nutrients': ['Protein', 'Carbohydrate', 'Fibre', 'Soduium', 'Fat', 'Salt'], 'Calories': 167, 'Cooked': True 'Allergens': ['Lactose','Gluten', 'Nuts'], 'Problematic': True, 'Process':'Fried', 'ED': "12.06.2017"
}
data_6_prod = {
'Prod_Name': EGE Gluten Free Corn Stach, 'BBD': 27.03.2019, 'Nutrients': ['Fat', 'Carbohydrate', 'Protein'], 'Calories': 360,'Cooked': False 'Allergens': ['Corn'],
'Problematic': False, 'Process': Scalping, 'ED': 20.02.2020
'Prod_Name': "Gullon Sugar Free Shortbread Biscuits", 'BBD': "02.11.2018", 'Nutrients': ['Protein', 'Carbohydrate', 'Fibre', 'Sodium', 'Fat', 'Sugar', 'Salt'],
'Calories': 439, 'Cooked': True, 'Allergens': ['Lactose', 'Wheat', 'Soya'], 'Problematic': False,
'Process': 'Baked', 'ED': "08.12.2018"
}
data_7_prod = {
'Prod_Name': Tropical Heat Peanuts, 'BBD': 04.02.2019, 'Nutrients': ['Protein', 'Carbohydrate', 'Sugar', 'Saturated Fat', 'Mono-unsaturated Fat', 'Poly-unsaturated Fat', 'Fibre','Salt'], 'Calories': 602,'Cooked': False 'Allergens': ['Peanuts'],
'Problematic': False, 'Roasted': None, 'ED': 09.03.2020
'Prod_Name': "Gullon Sugar Free Shortbread Biscuits", 'BBD': "20.07.2018", 'Nutrients': ['Protein', 'Carbohydrate', 'Fibre', 'Sodium', 'Fat', 'Sugar', 'Salt'], 'Calories': 430, 'Cooked': True 'Allergens': ['Lactose', 'Wheat', 'Soya'], 'Problematic': False, 'Process': 'Baked', 'ED': "20.09.2018"
}
data_8_prod = {
'Prod_Name': "Gullon Sugar Free Shortbread Biscuits", 'BBD': "31.07.2018", 'Nutrients': ['Protein', 'Carbohydrate', 'Fibre', 'Sodium', 'Fat', 'Sugar', 'Salt'], 'Calories': 441, 'Cooked': True 'Allergens': ['Lactose', 'Wheat', 'Soya'], 'Problematic': False, 'Process': 'Baked', 'ED': "25.10.2018"
}
data_9_prod = {
'Prod_Name': "Gullon Sugar Free Shortbread Biscuits", 'BBD': "11.06.2018", 'Nutrients': ['Protein', 'Carbohydrate', 'Fibre', 'Sodium', 'Fat', 'Sugar', 'Salt'], 'Calories': 444, 'Cooked': True 'Allergens': ['Lactose', 'Wheat', 'Soya'], 'Problematic': True, 'Process': 'Baked', 'ED': "12.07.2018"
}
data_10_prod = {
'Prod_Name': "Gullon Sugar Free Shortbread Biscuits", 'BBD': "20.12.2018", 'Nutrients': ['Protein', 'Carbohydrate', 'Fibre', 'Sodium', 'Fat', 'Sugar', 'Salt'], 'Calories': 429, 'Cooked': True 'Allergens': ['Lactose', 'Wheat', 'Soya'], 'Problematic': False, 'Process': 'Baked', 'ED': "25.02.2019"
}
data_11_prod = {
'Prod_Name': "Gluten Free Penne Rigate", 'BBD': "18.02.2019", 'Nutrients': ['Protein', 'Carbohydrate', 'Fiber', 'Sodium', 'Fat', 'Salt'], 'Calories': 359,'Cooked': False 'Allergens': ['Wheat'],
'Problematic': False, 'Process': 'Klining', 'ED': 18.02.2020
}
data_12_prod = {
'Prod_Name': "Gluten Free Penne Rigate" , 'BBD': "15.05.2019", 'Nutrients': ['Protein', 'Carbohydrate', 'Fiber', 'Sodium', 'Fat', 'Salt'], 'Calories': 351, 'Cooked': False 'Allergens': ['Wheat'], 'Problematic': False, 'Process': 'Klining', 'ED': "19.11.2019"
}
data_13_prod = {
'Prod_Name': "Gluten Free Penne Rigate", 'BBD': "21.01.2019", 'Nutrients': ['Protein', 'Carbohydrate', 'Fiber', 'Sodium', 'Fat', 'Salt'], 'Calories': 362, 'Cooked': False 'Allergens': ['Wheat'], 'Problematic': False, 'Process': 'Klining', 'ED': "26.08.2019"
}
data_14_prod = {
'Prod_Name': "Gluten Free Penne Rigate", 'BBD': "22.11.2018", 'Nutrients': ['Protein', 'Carbohydrate', 'Fiber', 'Sodium', 'Fat', 'Salt'], 'Calories': 350, 'Cooked': False 'Allergens': ['Wheat'], 'Problematic': False, 'Process': 'Klining', 'ED': "22.11.2019"
}
data_15_prod = {
'Prod_Name': "Gluten Free Penne Rigate", 'BBD': "30.01.2019", 'Nutrients': ['Protein', 'Carbohydrate', 'Fiber', 'Sodium', 'Fat', 'Salt'], 'Calories': 359, 'Cooked': False 'Allergens': ['Wheat'], 'Problematic': False, 'Process': 'Klining', 'ED': "20.01.2020"
}
data_1_proc = {
'Harvested': {
'Date': '18.08.2018', 'Location': 'Larson Family',
'Product': 'Raw Milk'
,'Problematic':False
},
'Transport1': {
'Duration': 9, 'Moved to,from': 'Larson Family-McCarty Family Farms', 'Condition': True,
'Stopped': True
,'Problematic':True
}, 'Process': {
'Location': 'McCarty Family Farms',
'Processes': 'Reverse Osmosis,Nanofiltration,Ultrafiltration,Microfiltration'
,'Problematic':False
},
'Transport2': {
'Duration': 13, 'Moved to,from': 'McCarty Family Farms-JJX Packaging', 'Condition': True,
'Stopped': True
,'Problematic':False
},
'Packaging': {'Location': 'JJX Packaging', 'Material': 'Carton', 'Cancerogen': False,'Problematic':True}
data_16_prod = {
'Prod_Name': "EGE Gluten Free Corn Stach", 'BBD': 27.03.2019, 'Nutrients': ['Fat', 'Carbohydrate', 'Protein'], 'Calories': 360,'Cooked': False 'Allergens': ['Corn'],
'Problematic': False, 'Process': 'Scalping', 'ED': 20.02.2020
}
data_17_prod = {
'Prod_Name': "EGE Gluten Free Corn Stach", 'BBD': "20.01.2019", 'Nutrients': ['Fat', 'Carbohydrate', 'Protein'], 'Calories': 361, 'Cooked': False 'Allergens': ['Corn'], 'Problematic': False, 'Process': 'Scalping', 'ED': "20.01.2020"
}one
data_18_prod = {
'Prod_Name': "EGE Gluten Free Corn Stach", 'BBD': "12.08.2018", 'Nutrients': ['Fat', 'Carbohydrate', 'Protein'], 'Calories': 362, 'Cooked': False 'Allergens': ['Corn'], 'Problematic': False, 'Process': 'Scalping', 'ED': "12.07.2019"
}
data_19_prod = {
'Prod_Name': "EGE Gluten Free Corn Stach", 'BBD': "17.07.2018", 'Nutrients': ['Fat', 'Carbohydrate', 'Protein'], 'Calories': 364, 'Cooked': False 'Allergens': ['Corn'], 'Problematic': False, 'Process': 'Scalping', 'ED': "19.07.2019"
}
data_20_prod = {
'Prod_Name': "EGE Gluten Free Corn Stach", 'BBD': "25.07.2018", 'Nutrients': ['Fat', 'Carbohydrate', 'Protein'], 'Calories': 360, 'Cooked': False 'Allergens': ['Corn'], 'Problematic': False, 'Process': 'Scalping', 'ED': "26.07.2019"
}
data_2_proc = {
'Harvested': {
'Date': '27.01.2018', 'Location': 'India',
'Product': 'Cocoa','Problematic':True
},
'Transport1': {'Duration': 71, 'Moved to,from': 'India-Nestle ', 'Condition': True, 'Stopped': True,'Problematic':False},
'Process': {'Location': 'Nestle', 'Processes': 'Roasting,Pulp,Conching,Moulding','Problematic':False},
'Transport2': {
'Duration': 4, 'Moved to,from': 'Nestle-Ulma Packaging', 'Condition': True,
'Stopped': False,'Problematic':False
},
'Packaging': {'Location': 'Ulma Packaging', 'Material': 'Foil', 'Cancerogen': False,'Problematic':False}
data_21_prod = {
'Prod_Name': "Tropical Heat Peanuts", 'BBD': 04.02.2019, 'Nutrients': ['Protein', 'Carbohydrate', 'Sugar', 'Saturated Fat', 'Mono-unsaturated Fat', 'Poly-unsaturated Fat', 'Fibre','Salt'], 'Calories': 602,'Cooked': False 'Allergens': ['Peanuts'],
'Problematic': False, 'Process': 'Roasted', 'ED': 09.03.2020
}
data_3_proc = {
data_22_prod = {
'Prod_Name': "Tropical Heat Peanuts", 'BBD': "19.01.2019", 'Nutrients': ['Protein', 'Carbohydrate', 'Sugar', 'Saturated Fat', 'Mono-unsaturated Fat', 'Poly-unsaturated Fat', 'Fibre','Salt'], 'Calories': 602, 'Cooked': False 'Allergens': ['Peanuts'], 'Problematic': False, 'Process': 'Roasted', 'ED': "19.05.2019"
}
data_23_prod = {
'Prod_Name': "Tropical Heat Peanuts", 'BBD': "15.04.2018", 'Nutrients': ['Protein', 'Carbohydrate', 'Sugar', 'Saturated Fat', 'Mono-unsaturated Fat', 'Poly-unsaturated Fat', 'Fibre','Salt'], 'Calories': 610, 'Cooked': False 'Allergens': ['Peanuts'], 'Problematic': True, 'Process': 'Roasted', 'ED': "19.07.2018"
}
data_24_prod = {
'Prod_Name': "Tropical Heat Peanuts", 'BBD': "14.04.2018", 'Nutrients': ['Protein', 'Carbohydrate', 'Sugar', 'Saturated Fat', 'Mono-unsaturated Fat', 'Poly-unsaturated Fat', 'Fibre','Salt'], 'Calories': 608, 'Cooked': False 'Allergens': ['Peanuts'], 'Problematic': False, 'Process': 'Roasted', 'ED': "16.08.2018"
}
data_25_prod = {
'Prod_Name': "Tropical Heat Peanuts", 'BBD': "24.03.2018", 'Nutrients': ['Protein', 'Carbohydrate', 'Sugar', 'Saturated Fat', 'Mono-unsaturated Fat', 'Poly-unsaturated Fat', 'Fibre','Salt'], 'Calories': 604, 'Cooked': False 'Allergens': ['Peanuts'], 'Problematic': True, 'Process': 'Roasted', 'ED': "20.06.2018"
}
data_1_proc = {
'Harvested': {'Date': '06.05.2018', 'Location': 'India', 'Product': 'Potatoe','Problematic':False},
'Transport1': {'Duration': 19, 'Moved to,from': 'India-Gee Tee Industries', 'Condition': True, 'Stopped': True,'Problematic':False},
'Process': {'Location': 'Gee Tee Industries', 'Processes': 'Peeling, Slicing, Frying','Problematic':False},
'Transport2': {'Duration': 0, 'Moved to,from': 'Gee Tee Industries-Gee Tee Industries', 'Condition': True, 'Stopped': False,'Problematic':False},
'Packaging': {'Location': 'Gee Tee Industries', 'Material': 'Polypropylene', 'Cancerogen': False,'Problematic': False}
}
data_2_proc = {
'Harvested': {'Date': '', 'Location': '', 'Product': '','Problematic':False},
'Transport1': {'Duration': 0, 'Moved to,from': '-', 'Condition': True, 'Stopped': False,'Problematic':False},
'Process': {'Location': '', 'Processes': '','Problematic':False},
'Transport2': {'Duration': 0, 'Moved to,from': '-', 'Condition': True, 'Stopped': False,'Problematic':False},
'Packaging': {'Location': '', 'Material': '', 'Cancerogen': True,'Problematic':False}
}
data_3_proc = {
'Harvested': {'Date': '', 'Location': '', 'Product': '','Problematic':False},
'Transport1': {'Duration': 0, 'Moved to,from': '-', 'Condition': True, 'Stopped': False,'Problematic':False},
'Process': {'Location': '', 'Processes': '','Problematic':False},
'Transport2': {'Duration': 0, 'Moved to,from': '-', 'Condition': True, 'Stopped': False,'Problematic':False},
'Packaging': {'Location': '', 'Material': '', 'Cancerogen': True,'Problematic':False}
}
data_4_proc = {
'Harvested': {'Date': '', 'Location': '', 'Product': '','Problematic':False},
'Transport1': {'Duration': 0, 'Moved to,from': '-', 'Condition': True, 'Stopped': False,'Problematic':False},
'Process': {'Location': '', 'Processes': '','Problematic':False},
'Transport2': {'Duration': 0, 'Moved to,from': '-', 'Condition': True, 'Stopped': False,'Problematic':False},
'Packaging': {'Location': '', 'Material': '', 'Cancerogen': True,'Problematic':False}
}
data_5_proc = {
'Harvested': {'Date': '', 'Location': '', 'Product': '','Problematic':False},
'Transport1': {'Duration': 0, 'Moved to,from': '-', 'Condition': True, 'Stopped': False,'Problematic':False},
'Process': {'Location': '', 'Processes': '','Problematic':False},
'Transport2': {'Duration': 0, 'Moved to,from': '-', 'Condition': True, 'Stopped': False,'Problematic':False},
'Packaging': {'Location': '', 'Material': '', 'Cancerogen': True,'Problematic':False}
}
data_6_proc = {
'Harvested': {'Date': '14.05.2017', 'Location': 'Turkey', 'Product': 'Wheat','Problematic':False},
'Transport1': {'Duration': 23, 'Moved to,from': 'Turkey-Galletas Gullon SA', 'Condition': True, 'Stopped': True,'Problematic':False},
'Process': {'Location': 'Galletas Gullon SA', 'Processes': 'Kneading, Moulding, Baking, Cooling','Problematic':False},
'Transport2': {'Duration': 7, 'Moved to,from': 'Galletas Gullon SA-Greif Packaging Spain SA', 'Condition': True, 'Stopped': False,'Problematic':False},
'Packaging': {'Location': 'Greif Packaging Spain SA', 'Material': 'Carton', 'Cancerogen': False,'Problematic':False}
}
data_5_proc = {
data_7_proc = {
'Harvested': {'Date': '', 'Location': '', 'Product': '','Problematic':False},
'Transport1': {'Duration': 0, 'Moved to,from': '-', 'Condition': True, 'Stopped': False,'Problematic':False},
'Process': {'Location': '', 'Processes': '','Problematic':False},
'Transport2': {'Duration': 0, 'Moved to,from': '-', 'Condition': True, 'Stopped': False,'Problematic':False},
'Packaging': {'Location': '', 'Material': '', 'Cancerogen': True,'Problematic':False}
}
data_8_proc = {
'Harvested': {'Date': '', 'Location': '', 'Product': '','Problematic':False},
'Transport1': {'Duration': 0, 'Moved to,from': '-', 'Condition': True, 'Stopped': False,'Problematic':False},
'Process': {'Location': '', 'Processes': '','Problematic':False},
'Transport2': {'Duration': 0, 'Moved to,from': '-', 'Condition': True, 'Stopped': False,'Problematic':False},
'Packaging': {'Location': '', 'Material': '', 'Cancerogen': True,'Problematic':False}
}
data_9_proc = {
'Harvested': {'Date': '', 'Location': '', 'Product': '','Problematic':False},
'Transport1': {'Duration': 0, 'Moved to,from': '-', 'Condition': True, 'Stopped': False,'Problematic':False},
'Process': {'Location': '', 'Processes': '','Problematic':False},
'Transport2': {'Duration': 0, 'Moved to,from': '-', 'Condition': True, 'Stopped': False,'Problematic':False},
'Packaging': {'Location': '', 'Material': '', 'Cancerogen': True,'Problematic':False}
}
data_10_proc = {
'Harvested': {'Date': '', 'Location': '', 'Product': '','Problematic':False},
'Transport1': {'Duration': 0, 'Moved to,from': '-', 'Condition': True, 'Stopped': False,'Problematic':False},
'Process': {'Location': '', 'Processes': '','Problematic':False},
'Transport2': {'Duration': 0, 'Moved to,from': '-', 'Condition': True, 'Stopped': False,'Problematic':False},
'Packaging': {'Location': '', 'Material': '', 'Cancerogen': True,'Problematic':False}
}
data_11_proc = {
'Harvested': {'Date': '15.06.2017', 'Location': 'Russia', 'Product': 'Wheat','Problematic':False},
'Transport1': {'Duration': 29, 'Moved to,from': 'Russia-Barilla', 'Condition': True, 'Stopped': True,'Problematic':False},
'Process': {'Location': 'Barilla', 'Processes': 'Pressing, Moulding, Klining, Ensiling ','Problematic':False},
'Transport2': {'Duration': 1, 'Moved to,from': 'Barilla-Barilla', 'Condition': True, 'Stopped': False,'Problematic':False},
'Packaging': {'Location': 'Barilla', 'Material': 'Carton', 'Cancerogen': False,'Problematic':False}
}
data_6_proc = {
data_12_proc = {
'Harvested': {'Date': '', 'Location': '', 'Product': '','Problematic':False},
'Transport1': {'Duration': 0, 'Moved to,from': '-', 'Condition': True, 'Stopped': False,'Problematic':False},
'Process': {'Location': '', 'Processes': '','Problematic':False},
'Transport2': {'Duration': 0, 'Moved to,from': '-', 'Condition': True, 'Stopped': False,'Problematic':False},
'Packaging': {'Location': '', 'Material': '', 'Cancerogen': True,'Problematic':False}
}
data_13_proc = {
'Harvested': {'Date': '', 'Location': '', 'Product': '','Problematic':False},
'Transport1': {'Duration': 0, 'Moved to,from': '-', 'Condition': True, 'Stopped': False,'Problematic':False},
'Process': {'Location': '', 'Processes': '','Problematic':False},
'Transport2': {'Duration': 0, 'Moved to,from': '-', 'Condition': True, 'Stopped': False,'Problematic':False},
'Packaging': {'Location': '', 'Material': '', 'Cancerogen': True,'Problematic':False}
}
data_14_proc = {
'Harvested': {'Date': '', 'Location': '', 'Product': '','Problematic':False},
'Transport1': {'Duration': 0, 'Moved to,from': '-', 'Condition': True, 'Stopped': False,'Problematic':False},
'Process': {'Location': '', 'Processes': '','Problematic':False},
'Transport2': {'Duration': 0, 'Moved to,from': '-', 'Condition': True, 'Stopped': False,'Problematic':False},
'Packaging': {'Location': '', 'Material': '', 'Cancerogen': True,'Problematic':False}
}
data_15_proc = {
'Harvested': {'Date': '', 'Location': '', 'Product': '','Problematic':False},
'Transport1': {'Duration': 0, 'Moved to,from': '-', 'Condition': True, 'Stopped': False,'Problematic':False},
'Process': {'Location': '', 'Processes': '','Problematic':False},
'Transport2': {'Duration': 0, 'Moved to,from': '-', 'Condition': True, 'Stopped': False,'Problematic':False},
'Packaging': {'Location': '', 'Material': '', 'Cancerogen': True,'Problematic':False}
}
data_16_proc = {
'Harvested': {'Date': '16.08.2017', 'Location': 'USA', 'Product': 'Corn','Problematic':False},
'Transport1': {'Duration': 28, 'Moved to,from': 'USA-EGE Gluten Free Food Product Company', 'Condition': True, 'Stopped': True,'Problematic':False},
'Process': {'Location': 'EGE Gluten Free Food Product Company', 'Processes': 'Cleaning, Maceration, Core Scalping, Bran Scalping, Protein Scalping, Starch Purification','Problematic':False},
'Transport2': {'Duration': 1, 'Moved to,from': 'EGE Gluten Free Food Product Company-Starpak Packaging Company', 'Condition': True, 'Stopped': False,'Problematic':False},
'Packaging': {'Location': 'Starpak Packaging Company', 'Material': 'Recyclable Plastic', 'Cancerogen': False,'Problematic':False}
}
data_7_proc = {
data_17_proc = {
'Harvested': {'Date': '', 'Location': '', 'Product': '','Problematic':False},
'Transport1': {'Duration': 0, 'Moved to,from': '-', 'Condition': True, 'Stopped': False,'Problematic':False},
'Process': {'Location': '', 'Processes': '','Problematic':False},
'Transport2': {'Duration': 0, 'Moved to,from': '-', 'Condition': True, 'Stopped': False,'Problematic':False},
'Packaging': {'Location': '', 'Material': '', 'Cancerogen': True,'Problematic':False}
}
data_18_proc = {
'Harvested': {'Date': '', 'Location': '', 'Product': '','Problematic':False},
'Transport1': {'Duration': 0, 'Moved to,from': '-', 'Condition': True, 'Stopped': False,'Problematic':False},
'Process': {'Location': '', 'Processes': '','Problematic':False},
'Transport2': {'Duration': 0, 'Moved to,from': '-', 'Condition': True, 'Stopped': False,'Problematic':False},
'Packaging': {'Location': '', 'Material': '', 'Cancerogen': True,'Problematic':False}
}
data_19_proc = {
'Harvested': {'Date': '', 'Location': '', 'Product': '','Problematic':False},
'Transport1': {'Duration': 0, 'Moved to,from': '-', 'Condition': True, 'Stopped': False,'Problematic':False},
'Process': {'Location': '', 'Processes': '','Problematic':False},
'Transport2': {'Duration': 0, 'Moved to,from': '-', 'Condition': True, 'Stopped': False,'Problematic':False},
'Packaging': {'Location': '', 'Material': '', 'Cancerogen': True,'Problematic':False}
}
data_20_proc = {
'Harvested': {'Date': '', 'Location': '', 'Product': '','Problematic':False},
'Transport1': {'Duration': 0, 'Moved to,from': '-', 'Condition': True, 'Stopped': False,'Problematic':False},
'Process': {'Location': '', 'Processes': '','Problematic':False},
'Transport2': {'Duration': 0, 'Moved to,from': '-', 'Condition': True, 'Stopped': False,'Problematic':False},
'Packaging': {'Location': '', 'Material': '', 'Cancerogen': True,'Problematic':False}
}
data_21_proc = {
'Harvested': {'Date': '02.04.2018', 'Location': 'Kenya', 'Product': 'Peanuts','Problematic':False},
'Transport1': {'Duration': 8, 'Moved to,from': 'Kenya-Deepa Industries LTD', 'Condition': True, 'Stopped': True,'Problematic':False},
'Process': {'Location': 'Deepa Industries LTD', 'Processes': 'Peeling, Roasting, Salting','Problematic':False},
'Transport2': {'Duration': 0.5, 'Moved to,from': 'Deepa Industries LTD-Deepa Industries LTD', 'Condition': True, 'Stopped': False,'Problematic':False},
'Packaging': {'Location': 'Deepa Industries LTD', 'Material': 'Plastic', 'Cancerogen': False,'Problematic':False}
}
data_22_proc = {
'Harvested': {'Date': '', 'Location': '', 'Product': '','Problematic':False},
'Transport1': {'Duration': 0, 'Moved to,from': '-', 'Condition': True, 'Stopped': False,'Problematic':False},
'Process': {'Location': '', 'Processes': '','Problematic':False},
'Transport2': {'Duration': 0, 'Moved to,from': '-', 'Condition': True, 'Stopped': False,'Problematic':False},
'Packaging': {'Location': '', 'Material': '', 'Cancerogen': True,'Problematic':False}
}
data_23_proc = {
'Harvested': {'Date': '', 'Location': '', 'Product': '','Problematic':False},
'Transport1': {'Duration': 0, 'Moved to,from': '-', 'Condition': True, 'Stopped': False,'Problematic':False},
'Process': {'Location': '', 'Processes': '','Problematic':False},
'Transport2': {'Duration': 0, 'Moved to,from': '-', 'Condition': True, 'Stopped': False,'Problematic':False},
'Packaging': {'Location': '', 'Material': '', 'Cancerogen': True,'Problematic':False}
}
data_24_proc = {
'Harvested': {'Date': '', 'Location': '', 'Product': '','Problematic':False},
'Transport1': {'Duration': 0, 'Moved to,from': '-', 'Condition': True, 'Stopped': False,'Problematic':False},
'Process': {'Location': '', 'Processes': '','Problematic':False},
'Transport2': {'Duration': 0, 'Moved to,from': '-', 'Condition': True, 'Stopped': False,'Problematic':False},
'Packaging': {'Location': '', 'Material': '', 'Cancerogen': True,'Problematic':False}
}
data_25_proc = {
'Harvested': {'Date': '', 'Location': '', 'Product': '','Problematic':False},
'Transport1': {'Duration': 0, 'Moved to,from': '-', 'Condition': True, 'Stopped': False,'Problematic':False},
'Process': {'Location': '', 'Processes': '','Problematic':False},
'Transport2': {'Duration': 0, 'Moved to,from': '-', 'Condition': True, 'Stopped': False,'Problematic':False},
'Packaging': {'Location': '', 'Material': '', 'Cancerogen': True,'Problematic':False}
}
Products = [data_1_prod, data_2_prod, data_3_prod, data_4_prod,data_5_prod,data_6_prod,data_7_prod]
Processes = [data_1_proc, data_2_proc, data_3_proc,data_4_proc,data_5_proc,data_6_proc,data_7_proc]
Products = [data_1_prod, data_2_prod, data_3_prod, data_4_prod, data_5_prod, data_6_prod, data_7_prod, data_8_prod, data_9_prod, data_10_prod, data_11_prod, data_12_prod, data_13_prod, data_14_prod, data_15_prod, data_16_prod, data_17_prod, data_18_prod, data_19_prod, data_20_prod, data_21_prod, data_22_prod, data_23_prod, data_24_prod, data_25_prod]
Processes = [data_1_proc, data_2_proc, data_3_proc,data_4_proc, data_5_proc, data_6_proc, data_7_proc, data_8_proc, data_9_proc, data_10_proc, data_11_proc, data_12_proc, data_13_proc, data_14_proc, data_15_proc, data_16_proc, data_17_proc, data_18_proc, data_19_proc, data_20_proc, data_21_proc, data_22_proc, data_23_proc, data_24_proc, data_25_proc]
for i in range(len(Products)):
with open('../database/content/Products/'+str(i+1) + '.json', 'w') as outfile:


Loading…
Cancel
Save