update esg保存数据接口bug
This commit is contained in:
parent
05fa2463f0
commit
f16bb8647c
|
@ -387,16 +387,17 @@ class EsgRating(EsgInputData, CreditUtils):
|
||||||
|
|
||||||
def other_type_data_script():
|
def other_type_data_script():
|
||||||
"""其他类型问卷"""
|
"""其他类型问卷"""
|
||||||
other_type_data = OtherTypeDataByE()
|
if questionnaire['其他类型问卷']:
|
||||||
other_type_data.question_01 = questionnaire['其他类型问卷'][0][0]
|
other_type_data = OtherTypeDataByE()
|
||||||
other_type_data.question_02 = questionnaire['其他类型问卷'][1][0]
|
other_type_data.question_01 = questionnaire['其他类型问卷'][0][0]
|
||||||
other_type_data.question_03 = questionnaire['其他类型问卷'][2][0]
|
other_type_data.question_02 = questionnaire['其他类型问卷'][1][0]
|
||||||
other_type_data.question_04 = questionnaire['其他类型问卷'][3][0]
|
other_type_data.question_03 = questionnaire['其他类型问卷'][2][0]
|
||||||
other_type_data.question_05 = questionnaire['其他类型问卷'][4][0]
|
other_type_data.question_04 = questionnaire['其他类型问卷'][3][0]
|
||||||
other_type_data.question_06 = questionnaire['其他类型问卷'][5][0]
|
other_type_data.question_05 = questionnaire['其他类型问卷'][4][0]
|
||||||
other_type_data.question_07 = questionnaire['其他类型问卷'][6][0]
|
other_type_data.question_06 = questionnaire['其他类型问卷'][5][0]
|
||||||
other_type_data.question_08 = questionnaire['其他类型问卷'][7][0]
|
other_type_data.question_07 = questionnaire['其他类型问卷'][6][0]
|
||||||
other_type_data.list_to_save()
|
other_type_data.question_08 = questionnaire['其他类型问卷'][7][0]
|
||||||
|
other_type_data.list_to_save()
|
||||||
return questionnaire['其他类型问卷']
|
return questionnaire['其他类型问卷']
|
||||||
|
|
||||||
eq = EnvironmentQuestionnaire()
|
eq = EnvironmentQuestionnaire()
|
||||||
|
@ -429,12 +430,13 @@ class EsgRating(EsgInputData, CreditUtils):
|
||||||
|
|
||||||
def other_type_data_script():
|
def other_type_data_script():
|
||||||
"""其他类型问卷"""
|
"""其他类型问卷"""
|
||||||
other_type_data = OtherTypeDataByS()
|
if questionnaire['其他类型问卷']:
|
||||||
other_type_data.question_01 = questionnaire['其他类型问卷'][0]
|
other_type_data = OtherTypeDataByS()
|
||||||
other_type_data.question_02 = questionnaire['其他类型问卷'][1]
|
other_type_data.question_01 = questionnaire['其他类型问卷'][0]
|
||||||
other_type_data.question_03 = questionnaire['其他类型问卷'][2]
|
other_type_data.question_02 = questionnaire['其他类型问卷'][1]
|
||||||
other_type_data.question_04 = questionnaire['其他类型问卷'][3]
|
other_type_data.question_03 = questionnaire['其他类型问卷'][2]
|
||||||
other_type_data.list_to_save()
|
other_type_data.question_04 = questionnaire['其他类型问卷'][3]
|
||||||
|
other_type_data.list_to_save()
|
||||||
return questionnaire['其他类型问卷']
|
return questionnaire['其他类型问卷']
|
||||||
|
|
||||||
sq = SocietyQuestionnaire()
|
sq = SocietyQuestionnaire()
|
||||||
|
@ -459,16 +461,17 @@ class EsgRating(EsgInputData, CreditUtils):
|
||||||
|
|
||||||
def other_type_data_script():
|
def other_type_data_script():
|
||||||
"""其他类型问卷"""
|
"""其他类型问卷"""
|
||||||
other_type_data = OtherTypeDataByG()
|
if questionnaire['其他类型问卷']:
|
||||||
other_type_data.question_01 = questionnaire['其他类型问卷'][0]
|
other_type_data = OtherTypeDataByG()
|
||||||
other_type_data.question_02 = questionnaire['其他类型问卷'][1]
|
other_type_data.question_01 = questionnaire['其他类型问卷'][0]
|
||||||
other_type_data.question_03 = int(questionnaire['其他类型问卷'][2])
|
other_type_data.question_02 = questionnaire['其他类型问卷'][1]
|
||||||
other_type_data.question_04 = int(questionnaire['其他类型问卷'][3])
|
other_type_data.question_03 = int(questionnaire['其他类型问卷'][2])
|
||||||
other_type_data.question_05 = questionnaire['其他类型问卷'][4]
|
other_type_data.question_04 = int(questionnaire['其他类型问卷'][3])
|
||||||
other_type_data.question_06 = questionnaire['其他类型问卷'][5]
|
other_type_data.question_05 = questionnaire['其他类型问卷'][4]
|
||||||
other_type_data.question_07 = questionnaire['其他类型问卷'][6]
|
other_type_data.question_06 = questionnaire['其他类型问卷'][5]
|
||||||
other_type_data.question_08 = questionnaire['其他类型问卷'][7]
|
other_type_data.question_07 = questionnaire['其他类型问卷'][6]
|
||||||
other_type_data.list_to_save()
|
other_type_data.question_08 = questionnaire['其他类型问卷'][7]
|
||||||
|
other_type_data.list_to_save()
|
||||||
return questionnaire['其他类型问卷']
|
return questionnaire['其他类型问卷']
|
||||||
|
|
||||||
gq = GovernanceQuestionnaire()
|
gq = GovernanceQuestionnaire()
|
||||||
|
|
Loading…
Reference in New Issue