mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-11-22 21:34:23 +00:00
Corrects the score return
This commit is contained in:
1 parent
16e73f611d
commit
9e3c93f72d
1 file changed
+2
-3
@@ -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