Omkar008 commited on
Commit
963d1a5
1 Parent(s): 3d6350d

Update controllers/ws_controller.py

Browse files
Files changed (1) hide show
  1. controllers/ws_controller.py +4 -0
controllers/ws_controller.py CHANGED
@@ -212,8 +212,12 @@ async def websocket_main(code: str, websocket: WebSocket,brand_name: Optional[s
212
  print("Total Length of messages")
213
  print(len(messages))
214
  chunk_size = 100000
 
215
  for message in messages:
216
  message_json = message.to_json()
 
 
 
217
  await send_message_in_chunks(websocket, message_json, chunk_size)
218
  await websocket.send_text("NEXT_MESSAGE")
219
 
 
212
  print("Total Length of messages")
213
  print(len(messages))
214
  chunk_size = 100000
215
+ i=0
216
  for message in messages:
217
  message_json = message.to_json()
218
+
219
+ logging.info(f"{i} th message")
220
+ i=i+1
221
  await send_message_in_chunks(websocket, message_json, chunk_size)
222
  await websocket.send_text("NEXT_MESSAGE")
223