From 72e9d4ac2424c5dda2d5d1634c4a0ffc22f07cc7 Mon Sep 17 00:00:00 2001 From: P3ngSaM <61768364+P3ngSaM@users.noreply.github.com> Date: Mon, 6 Jun 2022 13:56:23 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E8=82=A1=E4=B8=9C=E9=97=AE=E9=A2=98bu?= =?UTF-8?q?g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- RatingData/scripts/report/company_profile.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/RatingData/scripts/report/company_profile.py b/RatingData/scripts/report/company_profile.py index 7c2f6e3..47c9fbf 100644 --- a/RatingData/scripts/report/company_profile.py +++ b/RatingData/scripts/report/company_profile.py @@ -1,6 +1,7 @@ import datetime from RatingData.scripts.common import * +from Utils.ObjUtil import SpecObject def company_background(param1, param2): @@ -167,7 +168,7 @@ def shareholder_strength(param): part_01['share_rates'] = '-' else: # 股东-十大股东 - data_03 = shareholder_data['十大股东']['holderList'] + data_03 = SpecObject.get_attr(shareholder_data['十大股东'], 'holderList') try: # 股东企业股份持有人 part_01['share_holders'] = data_03[0]['name'] @@ -176,6 +177,9 @@ def shareholder_strength(param): except KeyError: part_01['share_holders'] = '-' part_01['share_rates'] = '-' + except TypeError: + part_01['share_holders'] = '-' + part_01['share_rates'] = '-' # 股东企业经营范围 part_01['business_scope'] = data_02['businessScope'] else: