diff --git a/src/documents/parsers.py b/src/documents/parsers.py index e14607bd0..371a53c4b 100644 --- a/src/documents/parsers.py +++ b/src/documents/parsers.py @@ -190,6 +190,7 @@ def make_thumbnail_from_pdf(in_path, temp_dir, logging_group=None): return out_path + def parse_date(filename, text): """ Returns the date of the document. diff --git a/src/paperless_tika/signals.py b/src/paperless_tika/signals.py index 409daebe2..137416abb 100644 --- a/src/paperless_tika/signals.py +++ b/src/paperless_tika/signals.py @@ -7,12 +7,12 @@ def tika_consumer_declaration(sender, **kwargs): "weight": 10, "mime_types": { "application/msword": ".doc", - "application/vnd.openxmlformats-officedocument.wordprocessingml.document": ".docx", + "application/vnd.openxmlformats-officedocument.wordprocessingml.document": ".docx", # NOQA: E501 "application/vnd.ms-excel": ".xls", - "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": ".xlsx", + "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": ".xlsx", # NOQA: E501 "application/vnd.ms-powerpoint": ".ppt", - "application/vnd.openxmlformats-officedocument.presentationml.presentation": ".pptx", - "application/vnd.openxmlformats-officedocument.presentationml.slideshow": ".ppsx", + "application/vnd.openxmlformats-officedocument.presentationml.presentation": ".pptx", # NOQA: E501 + "application/vnd.openxmlformats-officedocument.presentationml.slideshow": ".ppsx", # NOQA: E501 "application/vnd.oasis.opendocument.presentation": ".odp", "application/vnd.oasis.opendocument.spreadsheet": ".ods", "application/vnd.oasis.opendocument.text": ".odt",