diff --git a/apps/common/handle/impl/qa/xls_parse_qa_handle.py b/apps/common/handle/impl/qa/xls_parse_qa_handle.py index 88e851ff4..1d1660e74 100644 --- a/apps/common/handle/impl/qa/xls_parse_qa_handle.py +++ b/apps/common/handle/impl/qa/xls_parse_qa_handle.py @@ -31,6 +31,7 @@ def handle_sheet(file_name, sheet): problem_list = [{'content': p[0:255]} for p in problem.split('\n') if len(p.strip()) > 0] title = get_row_value(row, title_row_index_dict, 'title') title = str(title) if title is not None else '' + content = str(content) paragraph_list.append({'title': title[0:255], 'content': content[0:4096], 'problem_list': problem_list}) diff --git a/apps/common/handle/impl/qa/xlsx_parse_qa_handle.py b/apps/common/handle/impl/qa/xlsx_parse_qa_handle.py index 973737772..a32b5f0d9 100644 --- a/apps/common/handle/impl/qa/xlsx_parse_qa_handle.py +++ b/apps/common/handle/impl/qa/xlsx_parse_qa_handle.py @@ -33,7 +33,7 @@ def handle_sheet(file_name, sheet): problem_list = [{'content': p[0:255]} for p in problem.split('\n') if len(p.strip()) > 0] title = get_row_value(row, title_row_index_dict, 'title') title = str(title.value) if title is not None and title.value is not None else '' - content = content.value + content = str(content.value) paragraph_list.append({'title': title[0:255], 'content': content[0:4096], 'problem_list': problem_list})