diff --git a/docling/backend/msexcel_backend.py b/docling/backend/msexcel_backend.py index cc2e4106..bd30da69 100644 --- a/docling/backend/msexcel_backend.py +++ b/docling/backend/msexcel_backend.py @@ -67,7 +67,7 @@ class MsExcelDocumentBackend(DeclarativeDocumentBackend): @classmethod def supported_formats(cls) -> Set[InputFormat]: - return {InputFormat.EXCEL} + return {InputFormat.XLSX} def convert(self) -> DoclingDocument: # Parses the DOCX into a structured document model. @@ -76,7 +76,7 @@ class MsExcelDocumentBackend(DeclarativeDocumentBackend): origin = DocumentOrigin( filename=self.file.name or "file", - mimetype="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", + mimetype="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", binary_hash=self.document_hash, ) diff --git a/docling/document_converter.py b/docling/document_converter.py index 01c9a58d..4e436d07 100644 --- a/docling/document_converter.py +++ b/docling/document_converter.py @@ -86,7 +86,7 @@ class ImageFormatOption(FormatOption): _format_to_default_options = { - InputFormat.EXCEL: FormatOption( + InputFormat.XLSX: FormatOption( pipeline_cls=SimplePipeline, backend=MsExcelDocumentBackend ), InputFormat.DOCX: FormatOption(