You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

295 lines
26 KiB

  1. import json
  2. data_format_prod = {
  3. 'Prod_Name': "None", 'BBD': "None", 'Nutrients': [], 'Calories': 0, 'Cooked': False, 'Allergens': [], 'Problematic': False, 'Process': "None", 'ED': "None"
  4. }
  5. data_format_proc = {
  6. 'Harvested': {'Date': '', 'Location': '', 'Product': '','Problematic':False},
  7. 'Transport1': {'Duration': 0, 'Moved to,from': '-', 'Condition': True, 'Stopped': False,'Problematic':False},
  8. 'Process': {'Location': '', 'Processes': '','Problematic':False},
  9. 'Transport2': {'Duration': 0, 'Moved to,from': '-', 'Condition': True, 'Stopped': False,'Problematic':False},
  10. 'Packaging': {'Location': '', 'Material': '', 'Cancerogen': True,'Problematic':False}
  11. }
  12. data_1_prod = {
  13. 'Prod_Name': "Delitos", 'BBD': "19.12.2018", 'Nutrients': ['Protein(1.52g)', 'Carbohydrate(14.6g)', 'Fibre(1.1g)', 'Soduium(0.18g)', 'Fat(10.2g)', 'Salt(2.3g)'],
  14. 'Calories': 160, 'Cooked': True, 'Allergens': ['Lactose','Gluten', 'Nuts'], 'Problematic': False,
  15. 'Process': 'Fried', 'ED': "02.09.2018"
  16. }
  17. data_2_prod = {
  18. 'Prod_Name': "Delitos", 'BBD': "18.02.2018", 'Nutrients': ['Protein(1.52g)', 'Carbohydrate(14.6g)', 'Fibre(1.1g)', 'Soduium(0.18g)', 'Fat(10.2g)', 'Salt(2.3g)'], 'Calories': 153, 'Cooked': True, 'Allergens': ['Lactose','Gluten', 'Nuts'], 'Problematic': True, 'Process': 'Fried', 'ED': "12.03.2018"
  19. }
  20. data_3_prod = {
  21. 'Prod_Name': "Delitos", 'BBD': "10.01.2019", 'Nutrients': ['Protein(1.52g)', 'Carbohydrate(14.6g)', 'Fibre(1.1g)', 'Soduium(0.18g)', 'Fat(10.2g)', 'Salt(2.3g)'], 'Calories': 155, 'Cooked': True, 'Allergens': ['Lactose','Gluten', 'Nuts'], 'Problematic': False, 'Process':'Fried' , 'ED': "20.02.2019"
  22. }
  23. data_4_prod = {
  24. 'Prod_Name': "Delitos", 'BBD': "12.12.2018", 'Nutrients': ['Protein(1.52g)', 'Carbohydrate(14.6g)', 'Fibre(1.1g)', 'Soduium(0.18g)', 'Fat(10.2g)', 'Salt(2.3g)'], 'Calories': 161, 'Cooked': True, 'Allergens': ['Lactose','Gluten', 'Nuts'], 'Problematic': False, 'Process': 'Fried', 'ED': "12.02.2019"
  25. }
  26. data_5_prod = {
  27. 'Prod_Name': "Delitos", 'BBD': "12.05.2018", 'Nutrients': ['Protein(1.52g)', 'Carbohydrate(14.6g)', 'Fibre(1.1g)', 'Soduium(0.18g)', 'Fat(10.2g)', 'Salt(2.3g)'], 'Calories': 167, 'Cooked': True, 'Allergens': ['Lactose','Gluten', 'Nuts'], 'Problematic': True, 'Process':'Fried', 'ED': "12.06.2018"
  28. }
  29. data_6_prod = {
  30. 'Prod_Name': "Gullon Sugar Free Shortbread Biscuits", 'BBD': "02.11.2018", 'Nutrients': ['Protein(6g)', 'Carbohydrate(6.8g)', 'Fibre(4g)', 'Sodium(2g)', 'Fat(18g)', 'Sugar(0.5)', 'Salt(0.40g)'],
  31. 'Calories': 439, 'Cooked': True, 'Allergens': ['Lactose', 'Wheat', 'Soya'], 'Problematic': False,
  32. 'Process': 'Baked', 'ED': "08.12.2018"
  33. }
  34. data_7_prod = {
  35. 'Prod_Name': "Gullon Sugar Free Shortbread Biscuits", 'BBD': "20.07.2018", 'Nutrients': ['Protein(6g)', 'Carbohydrate(6.8g)', 'Fibre(4g)', 'Sodium(2g)', 'Fat(18g)', 'Sugar(0.5)', 'Salt(0.40g)'], 'Calories': 430, 'Cooked': True, 'Allergens': ['Lactose', 'Wheat', 'Soya'], 'Problematic': False, 'Process': 'Baked', 'ED': "20.09.2018"
  36. }
  37. data_8_prod = {
  38. 'Prod_Name': "Gullon Sugar Free Shortbread Biscuits", 'BBD': "31.07.2018", 'Nutrients': ['Protein(6g)', 'Carbohydrate(6.8g)', 'Fibre(4g)', 'Sodium(2g)', 'Fat(18g)', 'Sugar(0.5)', 'Salt(0.40g)'], 'Calories': 441, 'Cooked': True, 'Allergens': ['Lactose', 'Wheat', 'Soya'], 'Problematic': False, 'Process': 'Baked', 'ED': "25.10.2018"
  39. }
  40. data_9_prod = {
  41. 'Prod_Name': "Gullon Sugar Free Shortbread Biscuits", 'BBD': "11.06.2018", 'Nutrients': ['Protein(6g)', 'Carbohydrate(6.8g)', 'Fibre(4g)', 'Sodium(2g)', 'Fat(18g)', 'Sugar(0.5)', 'Salt(0.40g)'], 'Calories': 444, 'Cooked': True, 'Allergens': ['Lactose', 'Wheat', 'Soya'], 'Problematic': True, 'Process': 'Baked', 'ED': "12.07.2018"
  42. }
  43. data_10_prod = {
  44. 'Prod_Name': "Gullon Sugar Free Shortbread Biscuits", 'BBD': "20.12.2018", 'Nutrients': ['Protein(6g)', 'Carbohydrate(6.8g)', 'Fibre(4g)', 'Sodium(2g)', 'Fat(18g)', 'Sugar(0.5)', 'Salt(0.40g)'], 'Calories': 429, 'Cooked': True, 'Allergens': ['Lactose', 'Wheat', 'Soya'], 'Problematic': False, 'Process': 'Baked', 'ED': "25.02.2019"
  45. }
  46. data_11_prod = {
  47. 'Prod_Name': "Gluten Free Penne Rigate", 'BBD': "18.02.2019", 'Nutrients': ['Protein(6.5g)', 'Carbohydrate(78.7g)', 'Fiber(1.1g)', 'Fat(1.8g)', 'Salt(0.003g)'], 'Calories': 359,'Cooked': False, 'Allergens': ['Wheat'],
  48. 'Problematic': False, 'Process': 'Klining', 'ED': '18.02.2020'
  49. }
  50. data_12_prod = {
  51. 'Prod_Name': "Gluten Free Penne Rigate" , 'BBD': "15.05.2019", 'Nutrients': ['Protein(6.5g)', 'Carbohydrate(78.7g)', 'Fiber(1.1g)', 'Fat(1.8g)', 'Salt(0.003g)'], 'Calories': 351, 'Cooked': False, 'Allergens': ['Wheat'], 'Problematic': False, 'Process': 'Klining', 'ED': "19.11.2019"
  52. }
  53. data_13_prod = {
  54. 'Prod_Name': "Gluten Free Penne Rigate", 'BBD': "21.01.2019", 'Nutrients': ['Protein(6.5g)', 'Carbohydrate(78.7g)', 'Fiber(1.1g)', 'Fat(1.8g)', 'Salt(0.003g)'], 'Calories': 362, 'Cooked': False, 'Allergens': ['Wheat'], 'Problematic': False, 'Process': 'Klining', 'ED': "26.08.2019"
  55. }
  56. data_14_prod = {
  57. 'Prod_Name': "Gluten Free Penne Rigate", 'BBD': "22.11.2018", 'Nutrients': ['Protein(6.5g)', 'Carbohydrate(78.7g)', 'Fiber(1.1g)', 'Fat(1.8g)', 'Salt(0.003g)'], 'Calories': 350, 'Cooked': False, 'Allergens': ['Wheat'], 'Problematic': False, 'Process': 'Klining', 'ED': "22.11.2019"
  58. }
  59. data_15_prod = {
  60. 'Prod_Name': "Gluten Free Penne Rigate", 'BBD': "30.01.2019", 'Nutrients': ['Protein(6.5g)', 'Carbohydrate(78.7g)', 'Fiber(1.1g)', 'Fat(1.8g)', 'Salt(0.003g)'], 'Calories': 359, 'Cooked': False, 'Allergens': ['Wheat'], 'Problematic': False, 'Process': 'Klining', 'ED': "20.01.2020"
  61. }
  62. data_16_prod = {
  63. 'Prod_Name': "EGE Gluten Free Corn Starch", 'BBD': '27.03.2019', 'Nutrients': ['Fat(0.3g)', 'Carbohydrate(87.9g)', 'Protein(0.3g)'], 'Calories': 360,'Cooked': False, 'Allergens': ['Corn'],
  64. 'Problematic': False, 'Process': 'Scalping', 'ED': '20.02.2020'
  65. }
  66. data_17_prod = {
  67. 'Prod_Name': "EGE Gluten Free Corn Starch", 'BBD': "20.01.2019", 'Nutrients': ['Fat(0.3g)', 'Carbohydrate(87.9g)', 'Protein(0.3g)'], 'Calories': 361, 'Cooked': False, 'Allergens': ['Corn'], 'Problematic': False, 'Process': 'Scalping', 'ED': "20.01.2020"
  68. }
  69. data_18_prod = {
  70. 'Prod_Name': "EGE Gluten Free Corn Starch", 'BBD': "12.08.2018", 'Nutrients': ['Fat(0.3g)', 'Carbohydrate(87.9g)', 'Protein(0.3g)'], 'Calories': 362, 'Cooked': False, 'Allergens': ['Corn'], 'Problematic': False, 'Process': 'Scalping', 'ED': "12.07.2019"
  71. }
  72. data_19_prod = {
  73. 'Prod_Name': "EGE Gluten Free Corn Starch", 'BBD': "17.07.2018", 'Nutrients': ['Fat(0.3g)', 'Carbohydrate(87.9g)', 'Protein(0.3g)'], 'Calories': 364, 'Cooked': False, 'Allergens': ['Corn'], 'Problematic': False, 'Process': 'Scalping', 'ED': "19.07.2019"
  74. }
  75. data_20_prod = {
  76. 'Prod_Name': "EGE Gluten Free Corn Starch", 'BBD': "25.07.2018", 'Nutrients': ['Fat(0.3g)', 'Carbohydrate(87.9g)', 'Protein(0.3g)'], 'Calories': 360, 'Cooked': False, 'Allergens': ['Corn'], 'Problematic': False, 'Process': 'Scalping', 'ED': "26.07.2019"
  77. }
  78. data_21_prod = {
  79. 'Prod_Name': "Tropical Heat Peanuts", 'BBD': '04.02.2019', 'Nutrients': ['Protein(25.9g)', 'Carbohydrate(27.2g)', 'Sugar(10.8g)', 'Saturated Fat(8.3g)', 'Mono-unsaturated Fat(24.4g)', 'Poly-unsaturated Fat(14.4g)', 'Fibre(6.5g)','Salt(2.25g)'], 'Calories': 602,'Cooked': False, 'Allergens': ['Peanuts'],
  80. 'Problematic': False, 'Process': 'Roasted', 'ED': '09.03.2020'
  81. }
  82. data_22_prod = {
  83. 'Prod_Name': "Tropical Heat Peanuts", 'BBD': "19.01.2019", 'Nutrients': ['Protein(25.9g)', 'Carbohydrate(27.2g)', 'Sugar(10.8g)', 'Saturated Fat(8.3g)', 'Mono-unsaturated Fat(24.4g)', 'Poly-unsaturated Fat(14.4g)', 'Fibre(6.5g)','Salt(2.25g)'], 'Calories': 602, 'Cooked': False, 'Allergens': ['Peanuts'], 'Problematic': False, 'Process': 'Roasted', 'ED': "19.05.2019"
  84. }
  85. data_23_prod = {
  86. 'Prod_Name': "Tropical Heat Peanuts", 'BBD': "15.04.2018", 'Nutrients': ['Protein(25.9g)', 'Carbohydrate(27.2g)', 'Sugar(10.8g)', 'Saturated Fat(8.3g)', 'Mono-unsaturated Fat(24.4g)', 'Poly-unsaturated Fat(14.4g)', 'Fibre(6.5g)','Salt(2.25g)'], 'Calories': 610, 'Cooked': False, 'Allergens': ['Peanuts'], 'Problematic': True, 'Process': 'Roasted', 'ED': "19.07.2018"
  87. }
  88. data_24_prod = {
  89. 'Prod_Name': "Tropical Heat Peanuts", 'BBD': "14.04.2018", 'Nutrients': ['Protein(25.9g)', 'Carbohydrate(27.2g)', 'Sugar(10.8g)', 'Saturated Fat(8.3g)', 'Mono-unsaturated Fat(24.4g)', 'Poly-unsaturated Fat(14.4g)', 'Fibre(6.5g)','Salt(2.25g)'], 'Calories': 608, 'Cooked': False, 'Allergens': ['Peanuts'], 'Problematic': False, 'Process': 'Roasted', 'ED': "16.08.2018"
  90. }
  91. data_25_prod = {
  92. 'Prod_Name': "Tropical Heat Peanuts", 'BBD': "24.03.2018", 'Nutrients': ['Protein(25.9g)', 'Carbohydrate(27.2g)', 'Sugar(10.8g)', 'Saturated Fat(8.3g)', 'Mono-unsaturated Fat(24.4g)', 'Poly-unsaturated Fat(14.4g)', 'Fibre(6.5g)','Salt(2.25g)'], 'Calories': 604, 'Cooked': False, 'Allergens': ['Peanuts'], 'Problematic': True, 'Process': 'Roasted', 'ED': "20.06.2018"
  93. }
  94. data_1_proc = {
  95. 'Harvested': {'Date': '06.05.2018', 'Location': 'India', 'Product': 'Potatoe','Problematic':False},
  96. 'Transport1': {'Duration': 19, 'Moved to,from': 'India-Gee Tee Industries', 'Condition': True, 'Stopped': True,'Problematic':False},
  97. 'Process': {'Location': 'Gee Tee Industries', 'Processes': 'Peeling, Slicing, Frying','Problematic':False},
  98. 'Transport2': {'Duration': 1, 'Moved to,from': 'Gee Tee Industries-Gee Tee Industries', 'Condition': True, 'Stopped': False,'Problematic':False},
  99. 'Packaging': {'Location': 'Gee Tee Industries', 'Material': 'Polypropylene', 'Cancerogen': False,'Problematic': False}
  100. }
  101. data_2_proc = {
  102. 'Harvested': {'Date': '14.08.2017', 'Location': 'China', 'Product': 'Potatoe','Problematic':False},
  103. 'Transport1': {'Duration': 24, 'Moved to,from': 'China-Gee Tee Industries', 'Condition': True, 'Stopped': True,'Problematic':False},
  104. 'Process': {'Location': 'Gee Tee Industries', 'Processes': 'Peeling, Slicing, Frying','Problematic':False},
  105. 'Transport2': {'Duration': 1, 'Moved to,from': 'Gee Tee Industries-Gee Tee Industries', 'Condition': True, 'Stopped': False,'Problematic':False},
  106. 'Packaging': {'Location': 'Gee Tee Industries', 'Material': 'Polypropylene', 'Cancerogen': True,'Problematic':True}
  107. }
  108. data_3_proc = {
  109. 'Harvested': {'Date': '15.06.2018', 'Location': 'India', 'Product': 'Potatoe','Problematic':False},
  110. 'Transport1': {'Duration': 25, 'Moved to,from': 'India-Gee Tee Industries', 'Condition': True, 'Stopped': True,'Problematic':False},
  111. 'Process': {'Location': 'Gee Tee Industries', 'Processes': 'Peeling, Slicing, Frying','Problematicbest ':False},
  112. 'Transport2': {'Duration': 2, 'Moved to,from': 'Gee Tee Industries-Gee Tee Industries', 'Condition': True, 'Stopped': False,'Problematic':False},
  113. 'Packaging': {'Location': 'Gee Tee Industries', 'Material': 'Polypropylene', 'Cancerogen':False,'Problematic':False}
  114. }
  115. data_4_proc = {
  116. 'Harvested': {'Date': '19.06.2017', 'Location': 'Turkey', 'Product': 'Potatoe','Problematic':False},
  117. 'Transport1': {'Duration': 19, 'Moved to,from': 'Turkey-Gee Tee Industries', 'Condition': True, 'Stopped': True,'Problematic':False},
  118. 'Process': {'Location': 'Gee Tee Industries', 'Processes': 'Peeling, Slicing, Frying','Problematic':False},
  119. 'Transport2': {'Duration': 1, 'Moved to,from': 'Gee Tee Industries-Gee Tee Industries', 'Condition': True, 'Stopped': False,'Problematic':False},
  120. 'Packaging': {'Location': 'Gee Tee Industries', 'Material': 'Polypropylene', 'Cancerogen': False,'Problematic':False}
  121. }
  122. data_5_proc = {
  123. 'Harvested': {'Date': '27.07.2017', 'Location': 'Turkey', 'Product': 'Potatoe','Problematic':False},
  124. 'Transport1': {'Duration': 16, 'Moved to,from': 'Turkey-Gee Tee Industries', 'Condition': False, 'Stopped': True,'Problematic': True},
  125. 'Process': {'Location': 'Gee Tee Industries', 'Processes': 'Peeling, Slicing, Frying','Problematic':False},
  126. 'Transport2': {'Duration': 1, 'Moved to,from': 'Gee Tee Industries-Gee Tee Industries', 'Condition':True, 'Stopped': False,'Problematic':False},
  127. 'Packaging': {'Location': 'Gee Tee Industries', 'Material': 'Polypropylene', 'Cancerogen': False,'Problematic':False}
  128. }
  129. data_6_proc = {
  130. 'Harvested': {'Date': '14.05.2017', 'Location': 'Turkey', 'Product': 'Wheat','Problematic':False},
  131. 'Transport1': {'Duration': 23, 'Moved to,from': 'Turkey-Galletas Gullon SA', 'Condition': True, 'Stopped': True,'Problematic':False},
  132. 'Process': {'Location': 'Galletas Gullon SA', 'Processes': 'Kneading, Moulding, Baking, Cooling','Problematic':False},
  133. 'Transport2': {'Duration': 7, 'Moved to,from': 'Galletas Gullon SA-Greif Packaging Spain SA', 'Condition': True, 'Stopped': False,'Problematic':False},
  134. 'Packaging': {'Location': 'Greif Packaging Spain SA', 'Material': 'Carton', 'Cancerogen': False,'Problematic':False}
  135. }
  136. data_7_proc = {
  137. 'Harvested': {'Date': '15.05.2018', 'Location': 'China', 'Product': 'Wheat','Problematic':False},
  138. 'Transport1': {'Duration': 21, 'Moved to,from': 'China-Galletas Gullon SA', 'Condition': True, 'Stopped': True,'Problematic':False},
  139. 'Process': {'Location': 'Galletas Gullon SA', 'Processes': 'Kneading, Moulding, Baking, Cooling','Problematic':True},
  140. 'Transport2': {'Duration': 0, 'Moved to,from': 'Galletas Gullon SA-Galletas Gullon SA', 'Condition': True, 'Stopped': False,'Problematic':False},
  141. 'Packaging': {'Location': 'Galletas Gullon SA', 'Material': 'Carton', 'Cancerogen': False,'Problematic':False}
  142. }
  143. data_8_proc = {
  144. 'Harvested': {'Date': '17.04.2018', 'Location': 'Russia', 'Product': 'Wheat','Problematic':False},
  145. 'Transport1': {'Duration': 24, 'Moved to,from': 'Russia-Galletas Gullon SA', 'Condition': True, 'Stopped': True,'Problematic':False},
  146. 'Process': {'Location': 'Galletas Gullon SA', 'Processes': 'Kneading, Moulding, Baking, Cooling','Problematic':False},
  147. 'Transport2': {'Duration': 6, 'Moved to,from': 'Galletas Gullon SA-Greif Packaging Spain SA', 'Condition': True, 'Stopped': False,'Problematic':False},
  148. 'Packaging': {'Location': 'Greif Packaging Spain SA', 'Material': 'Carton', 'Cancerogen': False,'Problematic':False}
  149. }
  150. data_9_proc = {
  151. 'Harvested': {'Date': '12.03.2018', 'Location': 'India', 'Product': 'Wheat','Problematic':False},
  152. 'Transport1': {'Duration': 26, 'Moved to,from': 'India-Galletas Gullon SA', 'Condition': True, 'Stopped': True,'Problematic':False},
  153. 'Process': {'Location': 'Galletas Gullon SA', 'Processes': 'Kneading, Moulding, Baking, Cooling','Problematic':False},
  154. 'Transport2': {'Duration': 8, 'Moved to,from': 'Galletas Gullon SA-Greif Packaging Spain SA', 'Condition': False, 'Stopped': False,'Problematic':True},
  155. 'Packaging': {'Location': 'Greif Packaging Spain SA', 'Material': 'Carton', 'Cancerogen': False,'Problematic':False}
  156. }
  157. data_10_proc = {
  158. 'Harvested': {'Date': '14.06.2018', 'Location': 'Ukraine', 'Product': 'Wheat','Problematic':False},
  159. 'Transport1': {'Duration': 14, 'Moved to,from': 'Ukraine-Galletas Gullon SA', 'Condition': True, 'Stopped': True,'Problematic':False},
  160. 'Process': {'Location': 'Galletas Gullon SA', 'Processes': 'Kneading, Moulding, Baking, Cooling','Problematic':False},
  161. 'Transport2': {'Duration': 9, 'Moved to,from': 'Galletas Gullon SA-Greif Packaging Spain SA', 'Condition': True, 'Stopped': True,'Problematic':False},
  162. 'Packaging': {'Location': 'Greif Packaging Spain SA', 'Material': 'Carton', 'Cancerogen': False,'Problematic':False}
  163. }
  164. data_11_proc = {
  165. 'Harvested': {'Date': '15.06.2017', 'Location': 'Russia', 'Product': 'Wheat','Problematic':False},
  166. 'Transport1': {'Duration': 29, 'Moved to,from': 'Russia-Barilla', 'Condition': True, 'Stopped': True,'Problematic':False},
  167. 'Process': {'Location': 'Barilla', 'Processes': 'Pressing, Moulding, Klining, Ensiling ','Problematic':False},
  168. 'Transport2': {'Duration': 1, 'Moved to,from': 'Barilla-Barilla', 'Condition': True, 'Stopped': False,'Problematic':False},
  169. 'Packaging': {'Location': 'Barilla', 'Material': 'Carton', 'Cancerogen': True,'Problematic':True}
  170. }
  171. data_12_proc = {
  172. 'Harvested': {'Date': '12.08.2018', 'Location': 'India', 'Product': 'Wheat','Problematic':False},
  173. 'Transport1': {'Duration': 25, 'Moved to,from': 'India-Barilla', 'Condition': True, 'Stopped': True,'Problematic':False},
  174. 'Process': {'Location': 'Barilla', 'Processes': 'Pressing, Moulding, Klining, Ensiling','Problematic':True},
  175. 'Transport2': {'Duration': 0.5, 'Moved to,from': 'Barilla-Barilla', 'Condition': True, 'Stopped': False,'Problematic':False},
  176. 'Packaging': {'Location': 'Barilla', 'Material': 'Carton', 'Cancerogen': False,'Problematic':False}
  177. }
  178. data_13_proc = {
  179. 'Harvested': {'Date': '23.03.2018', 'Location': 'Turkey', 'Product': 'Wheat','Problematic':True},
  180. 'Transport1': {'Duration': 24, 'Moved to,from': 'Turkey-Barilla', 'Condition': True, 'Stopped': True,'Problematic':False},
  181. 'Process': {'Location': 'Barilla', 'Processes': 'Pressing, Moulding, Klining, Ensiling','Problematic':False},
  182. 'Transport2': {'Duration': 1, 'Moved to,from': 'Barilla-Barilla', 'Condition': True, 'Stopped': False,'Problematic':False},
  183. 'Packaging': {'Location': 'Barilla', 'Material': 'Carton', 'Cancerogen': False,'Problematic':False}
  184. }
  185. data_14_proc = {
  186. 'Harvested': {'Date': '24.06.2018', 'Location': 'Russia', 'Product': 'Wheat','Problematic':False},
  187. 'Transport1': {'Duration': 31, 'Moved to,from': 'Russia-Barilla', 'Condition': True, 'Stopped': True,'Problematic':False},
  188. 'Process': {'Location': 'Barilla', 'Processes': 'Pressing, Moulding, Klining, Ensiling','Problematic':False},
  189. 'Transport2': {'Duration': 1, 'Moved to,from': 'Barilla-Barilla', 'Condition': True, 'Stopped': False,'Problematic':False},
  190. 'Packaging': {'Location': 'Barilla', 'Material': 'Carton', 'Cancerogen': False,'Problematic':False}
  191. }
  192. data_15_proc = {
  193. 'Harvested': {'Date': '12.07.2018', 'Location': 'Russia', 'Product': 'Wheat','Problematic':False},
  194. 'Transport1': {'Duration': 23, 'Moved to,from': 'Russia-Barilla', 'Condition': True, 'Stopped': True,'Problematic':False},
  195. 'Process': {'Location': 'Barilla', 'Processes': 'Pressing, Moulding, Klining, Ensiling','Problematic':False},
  196. 'Transport2': {'Duration': 1, 'Moved to,from': 'Barilla-Barilla', 'Condition': True, 'Stopped': False,'Problematic':False},
  197. 'Packaging': {'Location': 'Barilla', 'Material': 'Carton', 'Cancerogen': False,'Problematic':True}
  198. }
  199. data_16_proc = {
  200. 'Harvested': {'Date': '16.08.2017', 'Location': 'USA', 'Product': 'Corn','Problematic':False},
  201. 'Transport1': {'Duration': 28, 'Moved to,from': 'USA-EGE Gluten Free Food Product Company', 'Condition': True, 'Stopped': True,'Problematic':False},
  202. 'Process': {'Location': 'EGE Gluten Free Food Product Company', 'Processes': 'Cleaning, Maceration, Core Scalping, Bran Scalping, Protein Scalping, Starch Purification','Problematic':False},
  203. 'Transport2': {'Duration': 1, 'Moved to,from': 'EGE Gluten Free Food Product Company-Starpak Packaging Company', 'Condition': True, 'Stopped': False,'Problematic':False},
  204. 'Packaging': {'Location': 'Starpak Packaging Company', 'Material': 'Recyclable Plastic', 'Cancerogen': False,'Problematic':False}
  205. }
  206. data_17_proc = {
  207. 'Harvested': {'Date': '20.06.2018', 'Location': 'USA', 'Product': 'Corn','Problematic':False},
  208. 'Transport1': {'Duration': 29, 'Moved to,from': 'USA-EGE Gluten Free Food Product Company', 'Condition': True, 'Stopped': True,'Problematic':False},
  209. 'Process': {'Location': 'EGE Gluten Free Food Product Company', 'Processes': 'Cleaning, Maceration, Core Scalping, Bran Scalping, Protein Scalping, Starch Purification','Problematic':False},
  210. 'Transport2': {'Duration': 0, 'Moved to,from': 'EGE Gluten Free Food Product Company-EGE Gluten Free Food Product Company', 'Condition': True, 'Stopped': False,'Problematic':False},
  211. 'Packaging': {'Location': 'EGE Gluten Free Food Product Company', 'Material': 'Recyclable Plastic', 'Cancerogen': False,'Problematic':False}
  212. }
  213. data_18_proc = {
  214. 'Harvested': {'Date': '16.06.2018', 'Location': 'India', 'Product': 'Corn','Problematic':False},
  215. 'Transport1': {'Duration': 21, 'Moved to,from': 'India-EGE Gluten Free Food Product Company', 'Condition': True, 'Stopped': True,'Problematic':False},
  216. 'Process': {'Location': 'EGE Gluten Free Food Product Company', 'Processes': 'Cleaning, Maceration, Core Scalping, Bran Scalping, Protein Scalping, Starch Purification','Problematic':False},
  217. 'Transport2': {'Duration': 0, 'Moved to,from': 'EGE Gluten Free Food Product Company-EGE Gluten Free Food Product Company', 'Condition': True, 'Stopped': False,'Problematic':False},
  218. 'Packaging': {'Location': 'EGE Gluten Free Food Product Company', 'Material': 'Recyclable Plastic', 'Cancerogen': False,'Problematic':False}
  219. }
  220. data_19_proc = {
  221. 'Harvested': {'Date': '14.06.2018', 'Location': 'Turkey', 'Product': 'Corn','Problematic':True},
  222. 'Transport1': {'Duration': 4, 'Moved to,from': 'Turkey-EGE Gluten Free Food Product Company', 'Condition': True, 'Stopped': False,'Problematic':False},
  223. 'Process': {'Location': 'EGE Gluten Free Food Product Company', 'Processes': 'Cleaning, Maceration, Core Scalping, Bran Scalping, Protein Scalping, Starch Purification','Problematic':False},
  224. 'Transport2': {'Duration': 2, 'Moved to,from': 'EGE Gluten Free Food Product Company-Starpak Packaging Company', 'Condition': True, 'Stopped': False,'Problematic':False},
  225. 'Packaging': {'Location': 'Starpak Packaging Company', 'Material': 'Recyclable Plastic', 'Cancerogen': False,'Problematic':False}
  226. }
  227. data_20_proc = {
  228. 'Harvested': {'Date': '01.06.2018', 'Location': 'Turkey', 'Product': 'Corn','Problematic':False},
  229. 'Transport1': {'Duration': 8, 'Moved to,from': 'Turkey-EGE Gluten Free Food Product Company', 'Condition': True, 'Stopped': True,'Problematic':False},
  230. 'Process': {'Location': 'EGE Gluten Free Food Product Company', 'Processes': 'Cleaning, Maceration, Core Scalping, Bran Scalping, Protein Scalping, Starch Purification','Problematic':False},
  231. 'Transport2': {'Duration': 0, 'Moved to,from': 'EGE Gluten Free Food Product Company-EGE Gluten Free Food Product Company', 'Condition': True, 'Stopped': False,'Problematic':False},
  232. 'Packaging': {'Location': 'EGE Gluten Free Food Product Company', 'Material': 'Non-recyclable Plastic', 'Cancerogen': True,'Problematic':True}
  233. }
  234. data_21_proc = {
  235. 'Harvested': {'Date': '02.04.2018', 'Location': 'Kenya', 'Product': 'Peanuts','Problematic':False},
  236. 'Transport1': {'Duration': 8, 'Moved to,from': 'Kenya-Deepa Industries LTD', 'Condition': True, 'Stopped': True,'Problematic':False},
  237. 'Process': {'Location': 'Deepa Industries LTD', 'Processes': 'Peeling, Roasting, Salting','Problematic':False},
  238. 'Transport2': {'Duration': 0.5, 'Moved to,from': 'Deepa Industries LTD-Deepa Industries LTD', 'Condition': True, 'Stopped': False,'Problematic':False},
  239. 'Packaging': {'Location': 'Deepa Industries LTD', 'Material': 'Plastic', 'Cancerogen': False,'Problematic':False}
  240. }
  241. data_22_proc = {
  242. 'Harvested': {'Date': '18.06.2018', 'Location': 'Kenya', 'Product': 'Peanuts','Problematic':False},
  243. 'Transport1': {'Duration': 7, 'Moved to,from': 'Kenya-Deepa Industries LTD', 'Condition': False, 'Stopped': False,'Problematic':True},
  244. 'Process': {'Location': 'Deepa Industries LTD', 'Processes': 'Peeling, Roasting, Salting','Problematic':False},
  245. 'Transport2': {'Duration': 1, 'Moved to,from': 'Deepa Industries LTD-Deepa Industries LTD', 'Condition': True, 'Stopped': False,'Problematic':False},
  246. 'Packaging': {'Location': 'Deepa Industries LTD', 'Material': 'Plastic', 'Cancerogen': True,'Problematic':True}
  247. }
  248. data_23_proc = {
  249. 'Harvested': {'Date': '19.08.2018', 'Location': 'Kenya', 'Product': 'Peanuts','Problematic':False},
  250. 'Transport1': {'Duration': 9, 'Moved to,from': 'Kenya-Deepa Industries LTD', 'Condition': True, 'Stopped': False,'Problematic':False},
  251. 'Process': {'Location': 'Deepa Industries LTD', 'Processes': 'Peeling, Roasting, Salting','Problematic':True},
  252. 'Transport2': {'Duration': 1, 'Moved to,from': 'Deepa Industries LTD-Deepa Industries LTD', 'Condition': True, 'Stopped': False,'Problematic':False},
  253. 'Packaging': {'Location': 'Deepa Industries LTD', 'Material': 'Plastic', 'Cancerogen': False,'Problematic':False}
  254. }
  255. data_24_proc = {
  256. 'Harvested': {'Date': '12.09.2017', 'Location': 'China', 'Product': 'Peanuts','Problematic':False},
  257. 'Transport1': {'Duration': 19, 'Moved to,from': 'China-Deepa Industries LTD', 'Condition': True, 'Stopped': False,'Problematic':False},
  258. 'Process': {'Location': 'Deepa Industries LTD', 'Processes': 'Peeling, Roasting, Salting','Problematic':False},
  259. 'Transport2': {'Duration': 1, 'Moved to,from': 'Deepa Industries LTD-Deepa Industries LTD', 'Condition': True, 'Stopped': False,'Problematic':False},
  260. 'Packaging': {'Location': 'Deepa Industries LTD', 'Material': 'Plastic', 'Cancerogen': False,'Problematic':False}
  261. }
  262. data_25_proc = {
  263. 'Harvested': {'Date': '19.10.2017', 'Location': 'India', 'Product': 'Peanuts','Problematic':False},
  264. 'Transport1': {'Duration': 15, 'Moved to,from': 'India-Deepa Industries LTD', 'Condition': True, 'Stopped': False,'Problematic':False},
  265. 'Process': {'Location': 'Deepa Industries LTD', 'Processes': 'Peeling, Roasting, Salting','Problematic':False},
  266. 'Transport2': {'Duration': 1, 'Moved to,from': 'Deepa Industries LTD-Deepa Industries LTD', 'Condition': True, 'Stopped': False,'Problematic':False},
  267. 'Packaging': {'Location': 'Deepa Industries LTD', 'Material': 'Plastic', 'Cancerogen': True,'Problematic':True}
  268. }
  269. 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]
  270. 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]
  271. for i in range(len(Products)):
  272. with open('../database/content/Products/'+str(i+1) + '.json', 'w') as outfile:
  273. json.dump(Products[i], outfile)
  274. outfile.close()
  275. for i in range(len(Processes)):
  276. with open('../database/content/Processes/'+str(i+1) + '.json', 'w') as outfile:
  277. json.dump(Processes[i], outfile)
  278. outfile.close()