Spaces:
Running
Running
Update test.py
Browse files
test.py
CHANGED
@@ -176,11 +176,12 @@ async def test_websocket(websocket: WebSocket):
|
|
176 |
# code = data.get("message")
|
177 |
# print(code)
|
178 |
# code = raw_body.decode()
|
179 |
-
|
180 |
|
181 |
def get_messages(code:str):
|
182 |
print()
|
183 |
# print(code)
|
|
|
184 |
access_token = code
|
185 |
print("printing access_token")
|
186 |
print(access_token)
|
@@ -227,6 +228,8 @@ async def test_websocket(websocket: WebSocket):
|
|
227 |
return filtered_data_list
|
228 |
|
229 |
async def event_generator(code:str):
|
|
|
|
|
230 |
print(code)
|
231 |
access_token = code
|
232 |
messages=get_messages(access_token)
|
|
|
176 |
# code = data.get("message")
|
177 |
# print(code)
|
178 |
# code = raw_body.decode()
|
179 |
+
event_generator(data)
|
180 |
|
181 |
def get_messages(code:str):
|
182 |
print()
|
183 |
# print(code)
|
184 |
+
logging.info("entered into the get_messages")
|
185 |
access_token = code
|
186 |
print("printing access_token")
|
187 |
print(access_token)
|
|
|
228 |
return filtered_data_list
|
229 |
|
230 |
async def event_generator(code:str):
|
231 |
+
logging.info("entered into the event_generator")
|
232 |
+
|
233 |
print(code)
|
234 |
access_token = code
|
235 |
messages=get_messages(access_token)
|