From 975707e771ec2cef750e7b8015d93f0112ebbcf3 Mon Sep 17 00:00:00 2001 From: 2000-Trek Date: Wed, 5 Jul 2023 23:11:17 +0200 Subject: [PATCH] test --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 4123b79..ebd23b4 100644 --- a/main.py +++ b/main.py @@ -290,7 +290,8 @@ def api_change(): db_log.info(f"Changed the balance from user {user[0]} from {user[2]} to {user_new[2]}") socketio.emit("update", "update") return make_response(json.dumps({"mode":"balance", "username":user[1], "balance":user[2]})) - return make_response(json.dumps({"mode":"error","error":"043"})) + else: + return make_response(json.dumps({"mode":"error","error":"043"})) @app.route("/api/tag_id", methods=['GET'])