update 调用打分模型接口地址修改
This commit is contained in:
parent
416dbdc969
commit
67f5913f42
|
@ -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})
|
||||
|
|
Loading…
Reference in New Issue