Added safty to /api/tag_id
This commit is contained in:
parent
f17a14ac39
commit
4dc082f5ea
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
@ -274,8 +274,8 @@ def request_removetag(data):
|
|||
def get_id():
|
||||
global finished
|
||||
global message
|
||||
tag_id = int(request.args.get("id"))
|
||||
c.execute(f"SELECT * FROM tags WHERE tagid ={tag_id}")
|
||||
tag_id = request.args.get("id")
|
||||
c.execute(f"SELECT * FROM tags WHERE tagid ='{tag_id}'")
|
||||
|
||||
tag_list = c.fetchall()
|
||||
if users.qsize() > 0:
|
||||
|
|
Loading…
Reference in a new issue