Commit 119e1bfc by dong

fix20230328

parent b6cfee50
......@@ -2,10 +2,7 @@ from py2neo import Graph
def conn_neo4j():
# graph = Graph("http://localhost:7474", username="neo4j", password="123456") # 本地neo4j
graph = Graph("http://39.100.39.50:7476", username="neo4j", password="123456") # 50服务器上的neo4j时使用
# graph = Graph("http://39.100.39.50:7475", username="neo4j", password="century-english-almanac-havana-golf-9040") # 太原的neo4j,测试是借用
# graph = Graph("http://39.100.39.50:7475", username="neo4j", password="123456") # 太原的neo4j,测试是借用
graph = Graph("http://39.100.39.50:7476", username="neo4j", password="123456") # 晋城neo4j
return graph
......
......@@ -1197,8 +1197,8 @@ def industry_enterprise():
Company.product_all.like("%{}%".format(product))
).all()
company1 += company2
size = len(set(company1))
company1 = set(company1)
size = len(company1)
company1 = sorted(company1, key=lambda x: x.hots, reverse=True)
companys = company1[(page - 1) * perpage:page * perpage]
......
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