This commit is contained in:
Taylor Wilsdon
2026-02-15 16:46:28 -05:00
parent 39fe339dc8
commit 9588396fcb
2 changed files with 5 additions and 2 deletions

View File

@@ -943,7 +943,8 @@ async def get_gmail_attachment_content(
# Fallback: match by size if exactly one attachment matches (IDs are ephemeral)
if not filename and attachments:
size_matches = [
att for att in attachments
att
for att in attachments
if att.get("size") and abs(att["size"] - size_bytes) < 100
]
if len(size_matches) == 1: