Add read_only=True for xlsx parsing

This commit is contained in:
Weves 2024-11-28 16:00:45 -08:00 committed by Chris Weaver
parent e338677896
commit 63d1eefee5

View File

@ -295,7 +295,7 @@ def pptx_to_text(file: IO[Any]) -> str:
def xlsx_to_text(file: IO[Any]) -> str:
workbook = openpyxl.load_workbook(file)
workbook = openpyxl.load_workbook(file, read_only=True)
text_content = []
for sheet in workbook.worksheets:
sheet_string = "\n".join(