From fda0bcb5d6a905b4ff23347fd62c75493bc2b070 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 Date: Fri, 20 Sep 2024 16:19:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=9F=A5=E8=AF=86?= =?UTF-8?q?=E5=BA=93=E5=AF=BC=E5=87=BA=E5=90=8E=E5=86=8D=E5=AF=BC=E5=85=A5?= =?UTF-8?q?=EF=BC=8C=E6=9C=89=E4=B8=80=E9=83=A8=E5=88=86=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E4=BC=9A=E4=B8=A2=E5=A4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/common/handle/impl/qa/csv_parse_qa_handle.py | 2 +- apps/common/handle/impl/qa/xls_parse_qa_handle.py | 2 +- apps/common/handle/impl/qa/xlsx_parse_qa_handle.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/common/handle/impl/qa/csv_parse_qa_handle.py b/apps/common/handle/impl/qa/csv_parse_qa_handle.py index 9ad9101ba..75c22cbda 100644 --- a/apps/common/handle/impl/qa/csv_parse_qa_handle.py +++ b/apps/common/handle/impl/qa/csv_parse_qa_handle.py @@ -52,7 +52,7 @@ class CsvParseQAHandle(BaseParseQAHandle): title = get_row_value(row, title_row_index_dict, 'title') title = str(title) if title is not None else '' paragraph_list.append({'title': title[0:255], - 'content': content[0:4096], + 'content': content[0:102400], 'problem_list': problem_list}) return [{'name': file.name, 'paragraphs': paragraph_list}] except Exception as e: 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 69526ceff..06edb1fb3 100644 --- a/apps/common/handle/impl/qa/xls_parse_qa_handle.py +++ b/apps/common/handle/impl/qa/xls_parse_qa_handle.py @@ -33,7 +33,7 @@ def handle_sheet(file_name, sheet): title = str(title) if title is not None else '' content = str(content) paragraph_list.append({'title': title[0:255], - 'content': content[0:4096], + 'content': content[0:102400], 'problem_list': problem_list}) return {'name': file_name, 'paragraphs': paragraph_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 d4688cb46..c3ee40d53 100644 --- a/apps/common/handle/impl/qa/xlsx_parse_qa_handle.py +++ b/apps/common/handle/impl/qa/xlsx_parse_qa_handle.py @@ -39,7 +39,7 @@ def handle_sheet(file_name, sheet, image_dict): if image is not None: content = f'![](/api/image/{image.id})' paragraph_list.append({'title': title[0:255], - 'content': content[0:4096], + 'content': content[0:102400], 'problem_list': problem_list}) return {'name': file_name, 'paragraphs': paragraph_list}