From 5af2ba3fdbbc0a6eb78a721155b6b4a5e552bdc9 Mon Sep 17 00:00:00 2001 From: P3ngSaM <61768364+P3ngSaM@users.noreply.github.com> Date: Tue, 8 Mar 2022 16:37:31 +0800 Subject: [PATCH] =?UTF-8?q?update=20ESG=E6=A8=A1=E5=9E=8Bbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Esg/scripts/environmental.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Esg/scripts/environmental.py b/Esg/scripts/environmental.py index 98a69ca..c395010 100644 --- a/Esg/scripts/environmental.py +++ b/Esg/scripts/environmental.py @@ -206,7 +206,7 @@ def calculation_04(param): # Parameter three_year_data = sorted(param['环境问卷']['近三年公司数据'], key=operator.itemgetter('年份'), reverse=False) try: - income = param['公司收入'][three_year_data[2]['年份']] + income = param['公司当年收入(万元)'][three_year_data[2]['年份']] green_income = three_year_data[2]['公司当年绿色业务收入(万元)——包括不限于清洁能源、清洁交通、绿色建筑、清洁技术等'] prop = round(green_income / income, 2)