From ed8bd817b7167edc37ed0efc5bc364735db9f507 Mon Sep 17 00:00:00 2001 From: bton Date: Wed, 20 Mar 2024 20:01:37 +0100 Subject: [PATCH] fixed --- Website/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Website/__init__.py b/Website/__init__.py index ddaaf98..14a64f0 100644 --- a/Website/__init__.py +++ b/Website/__init__.py @@ -289,7 +289,7 @@ def create_app(test_config=None): change = preis db_handler.change_balance(userid, change) socketio.emit("update", "update") - c.execute("SELECT * FROM useres WHERE id?",[userid]) + 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"}))