From 7de6cae4e7022baa27635e3d7965195c74de383d Mon Sep 17 00:00:00 2001 From: zqgame Date: Wed, 7 May 2025 12:08:23 +0800 Subject: [PATCH] python style --- api/core/rag/extractor/word_extractor.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/api/core/rag/extractor/word_extractor.py b/api/core/rag/extractor/word_extractor.py index ed021c6807..7119589b52 100644 --- a/api/core/rag/extractor/word_extractor.py +++ b/api/core/rag/extractor/word_extractor.py @@ -257,7 +257,6 @@ class WordExtractor(BaseExtractor): if image_part in image_map: has_drawing = True paragraph_content.append(image_map[image_part]) - # Process pict type images shape_elements = run.element.findall( ".//{http://schemas.openxmlformats.org/wordprocessingml/2006/main}pict" @@ -275,7 +274,6 @@ class WordExtractor(BaseExtractor): image_part = doc.part.rels[image_id].target_part if image_part in image_map and not has_drawing: paragraph_content.append(image_map[image_part]) - # Find imagedata element in VML image_data = shape.find(".//{urn:schemas-microsoft-com:vml}imagedata") if image_data is not None: