diff --git a/esg/esg_impl.py b/esg/esg_impl.py index 86f538c..7f3b785 100644 --- a/esg/esg_impl.py +++ b/esg/esg_impl.py @@ -132,6 +132,9 @@ def start_esg_rating_script(cid): new_input['企业ID'] = cid new_input['企业名称'] = company_name new_input['评价年度'] = get_current_year() + new_input['公司收入'] = dict() + for y in range(3): + new_input['公司收入'][report_dates[y]] = None for sheets in ['环境问卷', '社会问卷', '治理问卷']: for i in range(3): new_input[sheets]['近三年公司数据'][i]['年份'] = report_dates[i]