mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Fixes one more place which used manual size formatting
This commit is contained in:
parent
f6a70b85f4
commit
6d37ebf79e
@ -85,7 +85,8 @@ class MailDocumentParser(DocumentParser):
|
|||||||
"prefix": "",
|
"prefix": "",
|
||||||
"key": "attachments",
|
"key": "attachments",
|
||||||
"value": ", ".join(
|
"value": ", ".join(
|
||||||
f"{attachment.filename}({(attachment.size / 1024):.2f} KiB)"
|
f"{attachment.filename}"
|
||||||
|
f"({format_size(attachment.size, binary=True)})"
|
||||||
for attachment in mail.attachments
|
for attachment in mail.attachments
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user