mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-06-13 09:30:53 +02:00
Add read_only=True for xlsx parsing
This commit is contained in:
parent
e338677896
commit
63d1eefee5
@ -295,7 +295,7 @@ def pptx_to_text(file: IO[Any]) -> str:
|
|||||||
|
|
||||||
|
|
||||||
def xlsx_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 = []
|
text_content = []
|
||||||
for sheet in workbook.worksheets:
|
for sheet in workbook.worksheets:
|
||||||
sheet_string = "\n".join(
|
sheet_string = "\n".join(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user