Merge branch 'ps' into 'master'
update 调用打分模型接口地址修改 See merge request root/tfse_app_api!16
This commit is contained in:
commit
85b5180d7f
|
@ -189,7 +189,7 @@ def exec_esg_rating_scripts(cid):
|
||||||
res: desc
|
res: desc
|
||||||
"""
|
"""
|
||||||
# prepar
|
# prepar
|
||||||
record = find_rating_records({"企业ID": cid, "进行状态": "进行"})
|
record = find_rating_records({"企业ID": cid, "进行状态": "进行", "评价项目": "ESG评价"})
|
||||||
|
|
||||||
if not record:
|
if not record:
|
||||||
return False, "没有正在进行的评价"
|
return False, "没有正在进行的评价"
|
||||||
|
@ -205,7 +205,7 @@ def exec_esg_rating_scripts(cid):
|
||||||
|
|
||||||
# 打分模型
|
# 打分模型
|
||||||
def esg_model():
|
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"
|
token = "X0gSlC!YE8jmr2jJr&ilcjS83j!tsoh5"
|
||||||
headers = {'token': token, "Content-Type": "application/json;charset=UTF-8"}
|
headers = {'token': token, "Content-Type": "application/json;charset=UTF-8"}
|
||||||
data = json.dumps({"input_data": rating_inputs})
|
data = json.dumps({"input_data": rating_inputs})
|
||||||
|
|
Loading…
Reference in New Issue