Spaces:
Sleeping
Sleeping
Update test.py
Browse files
test.py
CHANGED
@@ -58,7 +58,7 @@ async def auth_google(request: Request):
|
|
58 |
user_info = requests.get("https://www.googleapis.com/oauth2/v1/userinfo", headers={"Authorization": f"Bearer {access_token_new}"})
|
59 |
page_token = None
|
60 |
messages = []
|
61 |
-
user_query = f"subject:((receipt {brand_name}) OR (receipts {brand_name})) has:attachment
|
62 |
|
63 |
while True:
|
64 |
# Construct Gmail API request with pageToken
|
|
|
58 |
user_info = requests.get("https://www.googleapis.com/oauth2/v1/userinfo", headers={"Authorization": f"Bearer {access_token_new}"})
|
59 |
page_token = None
|
60 |
messages = []
|
61 |
+
user_query = f"subject:((receipt {brand_name}) OR (receipts {brand_name}) OR (reçu {brand_name}) OR (reçus {brand_name}) OR (Quittung {brand_name}) OR (Quittungen {brand_name}) OR (aankoopbon {brand_name}) OR (aankoopbonnen {brand_name}) OR (recibo {brand_name}) OR (recibos {brand_name}) OR (ricevuta {brand_name}) OR (ricevute {brand_name}) OR (ontvangstbewijs {brand_name}) OR (ontvangstbewijzen {brand_name})) has:attachment""
|
62 |
|
63 |
while True:
|
64 |
# Construct Gmail API request with pageToken
|