Omkar008 commited on
Commit
5a38c96
1 Parent(s): 11c10eb

Update test.py

Browse files
Files changed (1) hide show
  1. test.py +2 -1
test.py CHANGED
@@ -70,7 +70,7 @@ async def test_google(code:str):
70
  page_token = None
71
  messages = []
72
  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"
73
-
74
  while True:
75
  # Construct Gmail API request with pageToken
76
 
@@ -163,6 +163,7 @@ async def auth_google(request: Request):
163
  page_token = None
164
  messages = []
165
  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"
 
166
 
167
  while True:
168
  # Construct Gmail API request with pageToken
 
70
  page_token = None
71
  messages = []
72
  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"
73
+ # user_query = f"{brand_name} label:^smartlabel_receipt"
74
  while True:
75
  # Construct Gmail API request with pageToken
76
 
 
163
  page_token = None
164
  messages = []
165
  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"
166
+ # user_query = f"{brand_name} label:^smartlabel_receipt"
167
 
168
  while True:
169
  # Construct Gmail API request with pageToken