From 1117814a08386cc078d43c322bd7ae0919f3e3d0 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com> Date: Tue, 6 Aug 2024 14:47:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DQA=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E8=A7=A3=E6=9E=90=E5=A4=B1=E8=B4=A5=20(#933)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit b3c7120372b82de758334bfd82bedb9e9d017a71) --- apps/common/handle/impl/qa/xls_parse_qa_handle.py | 1 + apps/common/handle/impl/qa/xlsx_parse_qa_handle.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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})