Spaces:
Sleeping
Sleeping
Update controllers/ws_controller.py
Browse files
controllers/ws_controller.py
CHANGED
@@ -208,11 +208,11 @@ async def send_message_in_chunks(websocket: WebSocket, message_json: dict, chunk
|
|
208 |
body_len = 0
|
209 |
if message_json['attachments'] is not None :
|
210 |
for attch in message_json['attachments']:
|
211 |
-
|
212 |
body_len = attch['body_len']
|
213 |
|
214 |
print(body_len)
|
215 |
-
print(
|
216 |
|
217 |
|
218 |
message_str = json.dumps(message_json)
|
|
|
208 |
body_len = 0
|
209 |
if message_json['attachments'] is not None :
|
210 |
for attch in message_json['attachments']:
|
211 |
+
attachment_len = attch['attachment_len']
|
212 |
body_len = attch['body_len']
|
213 |
|
214 |
print(body_len)
|
215 |
+
print(attachment_len)
|
216 |
|
217 |
|
218 |
message_str = json.dumps(message_json)
|