This commit is contained in:
2000-Trek 2023-07-05 23:15:44 +02:00
parent 2deafa4eaf
commit 1a55a9bff1

View file

@ -168,11 +168,11 @@ def adduser():
@app.route("/change", methods=['GET'])
def change():
try:
user_id = int(request.args.get("id"))
user_id = request.args.get("id")
change = int(request.args.get("change"))
except:
return '<p>Error: 095</p><a href="/list">tags and user list</a>'
c.execute(f"SELECT * FROM users WHERE id='?'", [user_id])
c.execute(f"SELECT * FROM users WHERE id=?", [user_id])
users = c.fetchall()
if users != []:
balance_old = users[0][2]