Omkar008 commited on
Commit
ccf236c
1 Parent(s): 41d97d6

Update get_gmail_data.py

Browse files
Files changed (1) hide show
  1. get_gmail_data.py +2 -2
get_gmail_data.py CHANGED
@@ -218,10 +218,10 @@ class GmailDataExtractor:
218
 
219
  """ Handling None values """
220
  subject = subject if subject is not None else ""
221
- body = body if body is not None else ""
222
  attachment_data = attachment_data if attachment_data is not None else {}
223
 
224
- results.append({"body": body, "attachment_data": attachment_data})
225
 
226
  return {"results": results}
227
 
 
218
 
219
  """ Handling None values """
220
  subject = subject if subject is not None else ""
221
+ body = body if body is not None else None
222
  attachment_data = attachment_data if attachment_data is not None else {}
223
 
224
+ results.append({"body": body, "attachment_data": [attachment_data]})
225
 
226
  return {"results": results}
227