diff --git a/api/api_v1/endpoints/interview.py b/api/api_v1/endpoints/interview.py index f96b6ca..6fce475 100644 --- a/api/api_v1/endpoints/interview.py +++ b/api/api_v1/endpoints/interview.py @@ -141,7 +141,11 @@ def chkData(data): education = res1['education'] res1['education'] = education_dict[education] 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 res_data.append(res1) return res_data