Commit d9094553 by chenyuanjie

no message

parent b96fb565
...@@ -802,10 +802,10 @@ def udf_parse_seller_json(seller_json): ...@@ -802,10 +802,10 @@ def udf_parse_seller_json(seller_json):
return 0, None, None return 0, None, None
else: else:
seller_info_parsed = json.loads(seller_json) seller_info_parsed = json.loads(seller_json)
ship_from = seller_info_parsed["ship_from"] ship_from = seller_info_parsed["ship_from"] | None
sold_by = seller_info_parsed["sold_by"] sold_by = seller_info_parsed["sold_by"] | None
fulfilled_by = seller_info_parsed["fulfilled_by"] fulfilled_by = seller_info_parsed["fulfilled_by"] | None
seller_id = seller_info_parsed["seller_id"] seller_id = seller_info_parsed["seller_id"] | None
if (ship_from and ship_from.lower().strip().startswith("amazon")) or ( if (ship_from and ship_from.lower().strip().startswith("amazon")) or (
fulfilled_by and 'amazon' in fulfilled_by.lower()): fulfilled_by and 'amazon' in fulfilled_by.lower()):
if sold_by and not sold_by.lower().strip().startswith("amazon"): if sold_by and not sold_by.lower().strip().startswith("amazon"):
......
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