From 67f5913f4287eadff80c473b7f1a76f6e3f24135 Mon Sep 17 00:00:00 2001 From: P3ngSaM <61768364+P3ngSaM@users.noreply.github.com> Date: Tue, 8 Mar 2022 16:47:59 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E8=B0=83=E7=94=A8=E6=89=93=E5=88=86?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E6=8E=A5=E5=8F=A3=E5=9C=B0=E5=9D=80=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- esg/esg_impl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esg/esg_impl.py b/esg/esg_impl.py index f5eb1d7..dea12c6 100644 --- a/esg/esg_impl.py +++ b/esg/esg_impl.py @@ -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})