supply file_name for tika parser

This commit is contained in:
jonaswinkler
2021-01-01 22:19:43 +01:00
parent de32addf76
commit 40ef375c15
6 changed files with 10 additions and 11 deletions

View File

@@ -88,7 +88,7 @@ class RasterisedDocumentParser(DocumentParser):
f"Error while calculating DPI for image {image}: {e}")
return None
def parse(self, document_path, mime_type):
def parse(self, document_path, mime_type, file_name=None):
mode = settings.OCR_MODE
text_original = get_text_from_pdf(document_path)