Spaces:
Sleeping
Sleeping
Update controllers/ws_controller.py
Browse files
controllers/ws_controller.py
CHANGED
@@ -19,7 +19,6 @@ def get_company_type(company_name:str)->str:
|
|
19 |
return company_types_dict.get(company_name.lower(), 'Others')
|
20 |
|
21 |
async def get_messages(code: str,websocket:WebSocket,start,brand_name: Optional[str] = None):
|
22 |
-
await websocket.send_text("Test text!!")
|
23 |
access_token = code
|
24 |
g_query = f'(subject:"your order" OR subject:receipts OR subject:receipt OR subject:aankoopbon OR subject:reçu OR subject:invoice OR subject:invoices OR category:purchases) has:attachment'
|
25 |
if brand_name is not None:
|
@@ -79,7 +78,7 @@ async def get_messages(code: str,websocket:WebSocket,start,brand_name: Optional[
|
|
79 |
end1 = time.time()
|
80 |
print("time 1")
|
81 |
print(end1-start1)
|
82 |
-
await process_message(message, websocket,
|
83 |
|
84 |
|
85 |
# if message:
|
|
|
19 |
return company_types_dict.get(company_name.lower(), 'Others')
|
20 |
|
21 |
async def get_messages(code: str,websocket:WebSocket,start,brand_name: Optional[str] = None):
|
|
|
22 |
access_token = code
|
23 |
g_query = f'(subject:"your order" OR subject:receipts OR subject:receipt OR subject:aankoopbon OR subject:reçu OR subject:invoice OR subject:invoices OR category:purchases) has:attachment'
|
24 |
if brand_name is not None:
|
|
|
78 |
end1 = time.time()
|
79 |
print("time 1")
|
80 |
print(end1-start1)
|
81 |
+
await process_message(message, websocket, 50000)
|
82 |
|
83 |
|
84 |
# if message:
|