Spaces:
Running
Running
Update test.py
Browse files
test.py
CHANGED
@@ -137,7 +137,7 @@ async def test_google(code:str):
|
|
137 |
print(parts)
|
138 |
|
139 |
for part in parts:
|
140 |
-
if part['mimeType'] == 'text/plain':
|
141 |
body_data = part['body']['data']
|
142 |
print("printing body data")
|
143 |
print(body_data)
|
|
|
137 |
print(parts)
|
138 |
|
139 |
for part in parts:
|
140 |
+
if part['mimeType'] == 'text/plain' or part['mimeType'] == 'text/html':
|
141 |
body_data = part['body']['data']
|
142 |
print("printing body data")
|
143 |
print(body_data)
|