Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Update chat_application/main.py
Browse files- chat_application/main.py +2 -2
chat_application/main.py
CHANGED
|
@@ -844,8 +844,8 @@ def handle_message(payload):
|
|
| 844 |
if result:
|
| 845 |
print(result)
|
| 846 |
if result.modified_count > 0:
|
| 847 |
-
return True
|
| 848 |
-
return False
|
| 849 |
|
| 850 |
@socketio.on('disconnect')
|
| 851 |
def handle_disconnect():
|
|
|
|
| 844 |
if result:
|
| 845 |
print(result)
|
| 846 |
if result.modified_count > 0:
|
| 847 |
+
return {'status':'True'}
|
| 848 |
+
return {'ststus':'False'}
|
| 849 |
|
| 850 |
@socketio.on('disconnect')
|
| 851 |
def handle_disconnect():
|