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 9ad9101ba0..75c22cbdaf 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 @@ def handle(self, file, get_buffer, save_image): 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 69526cefff..06edb1fb30 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 d4688cb46e..c3ee40d536 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}