mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-12 17:47:08 +01:00
Chore: Initial conversion to pytest fixtures (#7110)
This commit is contained in:
parent
1b9cf5121b
commit
3cf73a77ac
17 changed files with 1051 additions and 753 deletions
|
|
@ -52,7 +52,12 @@ class MailDocumentParser(DocumentParser):
|
|||
return PdfAFormat.A3b
|
||||
return None
|
||||
|
||||
def get_thumbnail(self, document_path: Path, mime_type: str, file_name=None):
|
||||
def get_thumbnail(
|
||||
self,
|
||||
document_path: Path,
|
||||
mime_type: str,
|
||||
file_name=None,
|
||||
) -> Path:
|
||||
if not self.archive_path:
|
||||
self.archive_path = self.generate_pdf(
|
||||
self.parse_file_to_message(document_path),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue