Commit 3cd8f621 by dong

fix20230331

parent bfafcc44
......@@ -444,12 +444,13 @@ def attract_enterprise():
company1 = []
product_li = get_product_li(product)
for product in product_li:
enterprise = enterprise.filter(or_(
enterprise2 = ''
enterprise2 = enterprise.filter(or_(
Enterprise.product_all.like("%{}%".format(product)),
Enterprise.product_all1.like("%{}%".format(product)),
Enterprise.product_all2.like("%{}%".format(product))
)).all()
company1 += enterprise
company1 += enterprise2
company1 = set(company1)
size = len(company1)
company1 = sorted(company1, key=lambda x: x.hots, reverse=True) # 排序
......
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