fixed tagremove
This commit is contained in:
parent
e4edf6b626
commit
d9bdf63119
1 changed files with 1 additions and 3 deletions
4
main.py
4
main.py
|
@ -187,9 +187,7 @@ def request_removetag(data):
|
||||||
finished = None
|
finished = None
|
||||||
c.execute(f"SELECT * FROM users WHERE id ={user}")
|
c.execute(f"SELECT * FROM users WHERE id ={user}")
|
||||||
username = c.fetchall()[0][1]
|
username = c.fetchall()[0][1]
|
||||||
c.execute(f"SELECT * FROM tags WHERE userid={user}")
|
socketio.emit("finished", f"removed tag from {username}")
|
||||||
tag_id = c.fetchall()[0][0]
|
|
||||||
socketio.emit("finished", f"removed {tag_id} from {username}")
|
|
||||||
else:
|
else:
|
||||||
socketio.emit("busy", "busy", to=session[id])
|
socketio.emit("busy", "busy", to=session[id])
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue