test
This commit is contained in:
parent
e8d86635c1
commit
975707e771
1 changed files with 2 additions and 1 deletions
1
main.py
1
main.py
|
@ -290,6 +290,7 @@ def api_change():
|
||||||
db_log.info(f"Changed the balance from user {user[0]} from {user[2]} to {user_new[2]}")
|
db_log.info(f"Changed the balance from user {user[0]} from {user[2]} to {user_new[2]}")
|
||||||
socketio.emit("update", "update")
|
socketio.emit("update", "update")
|
||||||
return make_response(json.dumps({"mode":"balance", "username":user[1], "balance":user[2]}))
|
return make_response(json.dumps({"mode":"balance", "username":user[1], "balance":user[2]}))
|
||||||
|
else:
|
||||||
return make_response(json.dumps({"mode":"error","error":"043"}))
|
return make_response(json.dumps({"mode":"error","error":"043"}))
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue