Commit d75ed4cd by fangxingjun

修改asin_amazon_orders解析,增加week解析

parent 17c72656
...@@ -69,6 +69,8 @@ class DimAsinAmordersInfo(Templates): ...@@ -69,6 +69,8 @@ class DimAsinAmordersInfo(Templates):
results_list = re.findall(pattern, str(asin_amazon_orders_str).lower()) results_list = re.findall(pattern, str(asin_amazon_orders_str).lower())
if len(results_list) == 1: if len(results_list) == 1:
result = int(results_list[0].replace("k", "000").replace(" ", "")) result = int(results_list[0].replace("k", "000").replace(" ", ""))
if 'week' in asin_amazon_orders_str:
result = result * 4
else: else:
result = None result = None
return result return result
......
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