This commit is contained in:
bton 2024-03-20 20:01:37 +01:00
parent 404e292450
commit ed8bd817b7

View file

@ -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"}))