mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-08-04 10:02:17 +00:00
Corrects the score return
This commit is contained in:
@@ -126,11 +126,10 @@ class MailDocumentParser:
|
||||
Returns
|
||||
-------
|
||||
int | None
|
||||
20 if the MIME type is supported (higher than the default 10 to
|
||||
give the mail parser clear priority), otherwise None.
|
||||
10 if the MIME type is supported, otherwise None.
|
||||
"""
|
||||
if mime_type in _SUPPORTED_MIME_TYPES:
|
||||
return 20
|
||||
return 10
|
||||
return None
|
||||
|
||||
# ------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user