diff --git a/Website/__init__.py b/Website/__init__.py index 05a6555..8e0b64f 100644 --- a/Website/__init__.py +++ b/Website/__init__.py @@ -287,7 +287,7 @@ def create_app(test_config=None): change = int(request.args.get("change")) except: change = preis - db_handler.change_balance(user_id, change) + db_handler.change_balance(userid, change) socketio.emit("update", "update") return make_response(json.dumps({"mode":"balance", "username":user[1], "balance":user_new[2]})) else: