Commit 8109a63f by dong

fix20230403

parent 41ade865
...@@ -293,7 +293,7 @@ def find_up_thr1(chain_id, industry_type, industry_id, flag): ...@@ -293,7 +293,7 @@ def find_up_thr1(chain_id, industry_type, industry_id, flag):
node_one = { node_one = {
"node": "{}".format(chain_name1), "node": "{}".format(chain_name1),
"level": 2, "level": 2,
"company_count": len(set(one_id_li)), "company_count": 0,
# "enterprise_count": total_count, # "enterprise_count": total_count,
"enterprise_count": company_count, "enterprise_count": company_count,
"subNodeList": [] "subNodeList": []
...@@ -347,6 +347,7 @@ def find_up_thr1(chain_id, industry_type, industry_id, flag): ...@@ -347,6 +347,7 @@ def find_up_thr1(chain_id, industry_type, industry_id, flag):
node_one["subNodeList"].append(node_two) node_one["subNodeList"].append(node_two)
# node_one.update({"company_count": total_count}) # node_one.update({"company_count": total_count})
# node_one.update({"company_count": len(set(one_id_li)), "enterprise_count": total_count}) # node_one.update({"company_count": len(set(one_id_li)), "enterprise_count": total_count})
node_one.update({"company_count": len(set(one_id_li))})
data["subNodeList"].append(node_one) data["subNodeList"].append(node_one)
return data return data
......
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