Spaces:
Sleeping
Sleeping
Update controllers/ws_controller.py
Browse files
controllers/ws_controller.py
CHANGED
@@ -283,9 +283,10 @@ def extract_attachments_from_mail(access_token: str, message_data: dict) -> List
|
|
283 |
}
|
284 |
"""
|
285 |
if struct_data is None or struct_data == st_str :
|
286 |
-
structured_data.append(struct_data)
|
287 |
-
else:
|
288 |
struct_data = None
|
|
|
|
|
|
|
289 |
|
290 |
|
291 |
attachments.append(Attachment(attachment_len = len(attachment_data.get("data", "")),filename=filename, data=attachment_data.get("data", "")))
|
|
|
283 |
}
|
284 |
"""
|
285 |
if struct_data is None or struct_data == st_str :
|
|
|
|
|
286 |
struct_data = None
|
287 |
+
else:
|
288 |
+
structured_data.append(struct_data)
|
289 |
+
|
290 |
|
291 |
|
292 |
attachments.append(Attachment(attachment_len = len(attachment_data.get("data", "")),filename=filename, data=attachment_data.get("data", "")))
|