Commit 10124fa2 by 陈森彬

新增过滤平台

parent 7db55a2d
Showing with 4 additions and 0 deletions
......@@ -33,6 +33,9 @@ def get_mongo_conf():
return conf
filter_pn = ("cdi", "richardsonrfpd", "company", "wpg",)
class MongoOperator:
def __init__(self):
......@@ -140,6 +143,7 @@ class MongoOperator:
stock_ontrast_ratio = stock_rate - old_stock_rate
tiered_ontrast_ratio = tiered_rate - old_tiered_rate
if not -3 < stock_ontrast_ratio < 3 or not -3 < tiered_ontrast_ratio < 3 or stock_rate > 90 or tiered_rate > 90:
if plat not in filter_pn:
msg_line = demo2.format(plat, stock_ontrast_ratio, tiered_ontrast_ratio, stock_rate,
tiered_rate)
print(plat, "空库存数量", stock_num, "空价格数量", stock_num, "总量", total, "空库存率",
......
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