test
This commit is contained in:
parent
2deafa4eaf
commit
1a55a9bff1
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue