Fixes one more place which used manual size formatting

This commit is contained in:
Trenton Holmes 2022-11-20 09:15:06 -08:00
parent f6a70b85f4
commit 6d37ebf79e

View File

@ -85,7 +85,8 @@ class MailDocumentParser(DocumentParser):
"prefix": "",
"key": "attachments",
"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
),
},