Skip to content

Commit

Permalink
Add read_only=True for xlsx parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
Weves committed Nov 29, 2024
1 parent e338677 commit 63d1eef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/danswer/file_processing/extract_file_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 63d1eef

Please sign in to comment.