Omkar008 commited on
Commit
c72bbf3
1 Parent(s): d954bfc

Update get_gmail_data.py

Browse files
Files changed (1) hide show
  1. 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=15'
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"