vinhngba2704 commited on
Commit
2944c1e
·
1 Parent(s): 07b9b37

Adding product id map function

Browse files
modules/audio_process.py CHANGED
@@ -112,8 +112,14 @@ def audio_process(audio_path, order_id):
112
  normalization_rule=os.getenv("NORMALIZATION_RULE_PATH")
113
  )
114
 
115
- # Skipping employee and product mapping
116
- processed_data = unit_merchant_mapped_data
 
 
 
 
 
 
117
 
118
  # Assign order id
119
  for item in processed_data:
 
112
  normalization_rule=os.getenv("NORMALIZATION_RULE_PATH")
113
  )
114
 
115
+ product_unit_merchant_mapped_data = mapping_product(
116
+ information= unit_merchant_mapped_data,
117
+ json_path= os.getenv("PRODUCT_JSON_PATH"),
118
+ normalization_rule= os.getenv("NORMALIZATION_RULE_PATH")
119
+ )
120
+
121
+ # Skipping employee
122
+ processed_data = product_unit_merchant_mapped_data
123
 
124
  # Assign order id
125
  for item in processed_data:
modules/image_process.py CHANGED
@@ -121,8 +121,14 @@ def image_process(image_path, order_id):
121
  normalization_rule=os.getenv("NORMALIZATION_RULE_PATH")
122
  )
123
 
124
- # Skipping employee and product mapping
125
- processed_data = unit_merchant_mapped_data
 
 
 
 
 
 
126
 
127
  # Assign order id
128
  for item in processed_data:
 
121
  normalization_rule=os.getenv("NORMALIZATION_RULE_PATH")
122
  )
123
 
124
+ product_unit_merchant_mapped_data = mapping_product(
125
+ information= unit_merchant_mapped_data,
126
+ json_path= os.getenv("PRODUCT_JSON_PATH"),
127
+ normalization_rule= os.getenv("NORMALIZATION_RULE_PATH")
128
+ )
129
+
130
+ # Skipping employee
131
+ processed_data = product_unit_merchant_mapped_data
132
 
133
  # Assign order id
134
  for item in processed_data: