From 404e2924508c8ecb26ae39ab79b363db5c9ffe7d Mon Sep 17 00:00:00 2001 From: bton Date: Wed, 20 Mar 2024 20:01:00 +0100 Subject: [PATCH] fixed --- Website/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Website/__init__.py b/Website/__init__.py index 8e0b64f..ddaaf98 100644 --- a/Website/__init__.py +++ b/Website/__init__.py @@ -289,7 +289,8 @@ def create_app(test_config=None): change = preis db_handler.change_balance(userid, change) socketio.emit("update", "update") - return make_response(json.dumps({"mode":"balance", "username":user[1], "balance":user_new[2]})) + c.execute("SELECT * FROM useres WHERE id?",[userid]) + return make_response(json.dumps({"mode":"balance", "username":user[1], "balance":c.fetchone()[2]})) else: return make_response(json.dumps({"mode":"error","error":"043"}))