update 调用打分模型接口地址修改

This commit is contained in:
P3ngSaM 2022-03-08 16:47:59 +08:00
parent 416dbdc969
commit 67f5913f42
1 changed files with 2 additions and 2 deletions

View File

@ -189,7 +189,7 @@ def exec_esg_rating_scripts(cid):
res: desc
"""
# prepar
record = find_rating_records({"企业ID": cid, "进行状态": "进行"})
record = find_rating_records({"企业ID": cid, "进行状态": "进行", "评价项目": "ESG评价"})
if not record:
return False, "没有正在进行的评价"
@ -205,7 +205,7 @@ def exec_esg_rating_scripts(cid):
# 打分模型
def esg_model():
url = "http://api.fecribd.com/esg_rating/rating/esg_model"
url = "http://api.fecribd.com/tfse_rating/esg/esg_model"
token = "X0gSlC!YE8jmr2jJr&ilcjS83j!tsoh5"
headers = {'token': token, "Content-Type": "application/json;charset=UTF-8"}
data = json.dumps({"input_data": rating_inputs})