新增报表

This commit is contained in:
Àî×ÚÕñ 2022-09-16 19:27:36 +08:00
parent 0b12fcedbf
commit abaf52ae9d

View File

@ -141,7 +141,11 @@ def chkData(data):
education = res1['education'] education = res1['education']
res1['education'] = education_dict[education] res1['education'] = education_dict[education]
if 'teacher_txt' in res1: if 'teacher_txt' in res1:
teacher_txt = json.loads(res1['teacher_txt']) teacher_txt = res1['teacher_txt']
if not teacher_txt:
teacher_txt = teacher_txt
else:
teacher_txt = json.loads(teacher_txt)
res1['teacher_txt'] = teacher_txt res1['teacher_txt'] = teacher_txt
res_data.append(res1) res_data.append(res1)
return res_data return res_data