Commit 33ba6d71 by dong

fix20230223

parent d86c02b1
......@@ -163,7 +163,7 @@ def get_count(chain_id, industry_id, chain_name, flag):
# else:
company_count = Company.query.filter(
Company.product_all.like('%{}%'.format(chain_name)),
Company.c_type == industry_id,
Company.c_type == chain_id,
).count()
if flag == 2: # 全国
# if industry_id in [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]:
......@@ -300,7 +300,9 @@ def find_up_thr1(chain_id, industry_type, industry_id, flag):
for pname_two in res_two:
chain_name2 = pname_two["chain_name"]
# company_count = get_count(chain_id, industry_id, chain_name2, flag)
company_count = get_count(chain_id, industry_id, chain_name2, flag)
total_count += company_count
# 二级
......
......@@ -517,7 +517,7 @@ def collection_carrier():
return jsonify(code=RET.DBERR, msg='收藏失败。')
# 收藏载体
# 取消收藏
@api_xiaocx.route('/CancelCollection', methods=['POST'])
# @login_required
def cancel_collection():
......
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