test
This commit is contained in:
parent
975707e771
commit
b6602a70e7
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
@ -172,7 +172,7 @@ def change():
|
||||||
change = int(request.args.get("change"))
|
change = int(request.args.get("change"))
|
||||||
except:
|
except:
|
||||||
return '<p>Error: 095</p><a href="/list">tags and user list</a>'
|
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()
|
users = c.fetchall()
|
||||||
if users != []:
|
if users != []:
|
||||||
balance_old = users[0][2]
|
balance_old = users[0][2]
|
||||||
|
@ -299,7 +299,7 @@ def get_id():
|
||||||
global finished
|
global finished
|
||||||
global message
|
global message
|
||||||
tag_id = request.args.get("id")
|
tag_id = request.args.get("id")
|
||||||
c.execute(f"SELECT * FROM tags WHERE tagid =?", [tag_id])
|
c.execute(f"SELECT * FROM tags WHERE tagid=?", [tag_id])
|
||||||
|
|
||||||
tag_list = c.fetchall()
|
tag_list = c.fetchall()
|
||||||
if users.qsize() > 0:
|
if users.qsize() > 0:
|
||||||
|
|
Loading…
Reference in a new issue