From 456f81273e7031d983aac88761eef0a9976e8238 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=80=9D=E5=B7=9D?= Date: Wed, 8 Dec 2021 14:05:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E4=BB=B6=E8=B7=AF=E5=BE=84=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- input/scripts.py | 8 ++++---- user/scripts.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/input/scripts.py b/input/scripts.py index c4dfaff..c1e3e99 100644 --- a/input/scripts.py +++ b/input/scripts.py @@ -118,7 +118,7 @@ def start_general_rating_script(cid): report_dates = make_3_report_dates() # 新填报记录 - new_input = read_json_file(file_path('/input/static/template/input.template')) + new_input = read_json_file(file_path('/input/static/template/input.json')) new_input['评价ID'] = new_rid new_input['企业ID'] = cid new_input['企业名称'] = find_user_info({"企业ID": cid})[0]['企业名称'] @@ -128,7 +128,7 @@ def start_general_rating_script(cid): new_input['财务填报'][sheets][i]['报告期'] = report_dates[i] # 生成新评价记录 - rating = read_json_file(file_path('/input/static/template/rating.template')) + rating = read_json_file(file_path('/input/static/template/rating.json')) rating['评价ID'] = new_rid rating['企业ID'] = cid rating['评价项目'] = "综合信用评价" @@ -166,7 +166,7 @@ def choose_industry_script(): Returns: res: desc """ - data = read_json_file(file_path('/input/static/template/industry.template')) + data = read_json_file(file_path('/input/static/template/industry.json')) return data @@ -178,5 +178,5 @@ def questionnaire_script(industry): Returns: data: 问卷内容 """ - data = read_json_file(file_path('/input/static/questionnaire/{}.template'.format(industry))) + data = read_json_file(file_path('/input/static/questionnaire/{}.json'.format(industry))) return data diff --git a/user/scripts.py b/user/scripts.py index fca6595..bdf0865 100644 --- a/user/scripts.py +++ b/user/scripts.py @@ -165,7 +165,7 @@ def gen_new_user(email, pwd): Returns: user: 新用户信息 """ - user = read_json_file(file_path('/user/static/template/user.template')) + user = read_json_file(file_path('/user/static/template/user.json')) user['企业ID'] = gen_new_cid() user['邮箱'] = email user['头像fid'] = "61a15b33e55c00003e0048e4"