From 1abcf7ac47cf06030a6c68dcb688ae80ebff3a00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=80=9D=E5=B7=9D?= Date: Mon, 27 Dec 2021 16:50:14 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E6=8C=87=E6=A0=87?= =?UTF-8?q?=E6=98=8E=E7=BB=86=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- company/routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/company/routes.py b/company/routes.py index 2a42d3c..158e7a2 100644 --- a/company/routes.py +++ b/company/routes.py @@ -21,7 +21,7 @@ def company_page(**kwargs): company_index.table = request.json['table'] if company_index.table != '指标明细': info, result = company_index.get_company_data_obj() - elif company_index.table == '指标明细': + elif company_index.table == '综合评价分析': info, result = company_index.get_index_detail_obj() result.pop('企业名称') result.pop('综合信用等级') From 85bb58d7e10bc3ae154d475393975be4d8418cab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=80=9D=E5=B7=9D?= Date: Mon, 27 Dec 2021 16:50:50 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- input/scripts.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/input/scripts.py b/input/scripts.py index 064f6cb..ac83368 100644 --- a/input/scripts.py +++ b/input/scripts.py @@ -227,9 +227,7 @@ def exec_general_rating_scripts(cid): update_data = { "评价结果": json.loads(res.text)['result'], "评价时间": time.strftime("%Y-%m-%d", time.localtime()), - "进行状态": "完成", - "报告fid": None, - "证书fid": None + "进行状态": "完成" } update_rating_records({"评价ID": rid}, update_data) return True @@ -239,3 +237,11 @@ def exec_general_rating_scripts(cid): # 生成报告 def gen_report(): pass + + # 生成证书 + def gen_certified(): + pass + + # 生成企业主页数据 + def company_index(): + pass