Commit 422acdad by 岳巧源

add cn file

parent 40fb380a
Showing with 2 additions and 14 deletions
......@@ -139,9 +139,9 @@ def handle_cn_csv(file_name):
prices.append(row[i])
for k in range(min(len(ladder_number), len(prices))):
item_map = dict()
item_map["purchases"] = int(ladder_number[i])
item_map["purchases"] = int(ladder_number[k])
item_map["price_us"] = float(0)
item_map["price_cn"] = float(prices[i])
item_map["price_cn"] = float(prices[k])
ladder_price.append(item_map)
message_map["ladder_price"] = ladder_price
message_map["price_is_us"] = False
......@@ -150,18 +150,6 @@ def handle_cn_csv(file_name):
if __name__ == '__main__':
environment = sys.argv[1]
if environment not in {"local", "dev", "prod"}:
......
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 sign in to comment