forked from Kelder/cammiechat
Add failed if failed
This commit is contained in:
parent
749069c66a
commit
2efcdb0624
1 changed files with 2 additions and 1 deletions
3
chat.py
3
chat.py
|
@ -80,7 +80,8 @@ def reply_post():
|
|||
if not message:
|
||||
return "No message found"
|
||||
socketio.emit('replymessage', {'message': message}, broadcast=True)
|
||||
return "OK"
|
||||
return "Message sent\n"
|
||||
return "Failed\n"
|
||||
|
||||
@app.route("/messages/", methods = ["POST"])
|
||||
def messages_post():
|
||||
|
|
Loading…
Reference in a new issue