Spaces:
Running
Running
Update get_gmail_data.py
Browse files- get_gmail_data.py +1 -0
get_gmail_data.py
CHANGED
@@ -189,6 +189,7 @@ class GmailDataExtractor:
|
|
189 |
data = attachment_data.get("data", "")
|
190 |
filename = part.get("filename", "untitled.txt")
|
191 |
|
|
|
192 |
if data:
|
193 |
# Save only the first 10 characters of the attachment data
|
194 |
return subject,text ,{"filename":filename , "data":data} , company_from_gmail , message_id
|
|
|
189 |
data = attachment_data.get("data", "")
|
190 |
filename = part.get("filename", "untitled.txt")
|
191 |
|
192 |
+
|
193 |
if data:
|
194 |
# Save only the first 10 characters of the attachment data
|
195 |
return subject,text ,{"filename":filename , "data":data} , company_from_gmail , message_id
|