riderle commited on
Commit
fc39adf
·
verified ·
1 Parent(s): b7f6d8b

Update chat_application/main.py

Browse files
Files changed (1) hide show
  1. 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():