Omkar008 commited on
Commit
7472cd0
1 Parent(s): 737d47e

Update controllers/ws_controller.py

Browse files
Files changed (1) hide show
  1. controllers/ws_controller.py +2 -2
controllers/ws_controller.py CHANGED
@@ -204,7 +204,7 @@ async def websocket_main(code: str, websocket: WebSocket,brand_name: Optional[s
204
 
205
 
206
  async def send_message_in_chunks(websocket: WebSocket, message_json: dict, chunk_size: int):
207
- attchment_len = 0
208
  body_len = 0
209
  if message_json['attachments'] is not None :
210
  for attch in message_json['attachments']:
@@ -212,7 +212,7 @@ async def send_message_in_chunks(websocket: WebSocket, message_json: dict, chunk
212
  body_len = attch['body_len']
213
 
214
  print(body_len)
215
- print(attacment_len)
216
 
217
 
218
  message_str = json.dumps(message_json)
 
204
 
205
 
206
  async def send_message_in_chunks(websocket: WebSocket, message_json: dict, chunk_size: int):
207
+ attachment_len = 0
208
  body_len = 0
209
  if message_json['attachments'] is not None :
210
  for attch in message_json['attachments']:
 
212
  body_len = attch['body_len']
213
 
214
  print(body_len)
215
+ print(attchment_len)
216
 
217
 
218
  message_str = json.dumps(message_json)