Spaces:
Running
Running
Update get_gmail_data.py
Browse files- get_gmail_data.py +1 -1
get_gmail_data.py
CHANGED
@@ -53,7 +53,7 @@ class GmailDataExtractor:
|
|
53 |
access_token = self.__jwt
|
54 |
print("access token")
|
55 |
print(access_token)
|
56 |
-
receipt_query = f'(subject:"your order" OR subject:receipts OR subject:receipt OR subject: aankoopbon OR subject:reçu OR subject:invoice OR subject:invoice OR category:purchases)&maxResults=
|
57 |
# if self.__user_input is not None:
|
58 |
# receipt_query = f'((subject:"your order" OR subject:receipts OR subject:receipt OR subject:invoice OR subject:invoice OR category:purchases) AND subject:{self.__user_input})&maxResults=15'
|
59 |
gmail_url = f"https://www.googleapis.com/gmail/v1/users/me/messages?q={receipt_query}&maxResults=3"
|
|
|
53 |
access_token = self.__jwt
|
54 |
print("access token")
|
55 |
print(access_token)
|
56 |
+
receipt_query = f'(subject:"your order" OR subject:receipts OR subject:receipt OR subject: aankoopbon OR subject:reçu OR subject:invoice OR subject:invoice OR category:purchases)&maxResults=10'
|
57 |
# if self.__user_input is not None:
|
58 |
# receipt_query = f'((subject:"your order" OR subject:receipts OR subject:receipt OR subject:invoice OR subject:invoice OR category:purchases) AND subject:{self.__user_input})&maxResults=15'
|
59 |
gmail_url = f"https://www.googleapis.com/gmail/v1/users/me/messages?q={receipt_query}&maxResults=3"
|