This commit is contained in:
2000-Trek 2023-06-09 23:21:48 +02:00
parent 46323b0ef4
commit ef9e53576f

View file

@ -198,6 +198,7 @@ def get_id():
if state == "add": if state == "add":
c.execute(f"INSERT OR IGNORE INTO tags (tagid, userid) VALUES ({tag_id}, {user})") c.execute(f"INSERT OR IGNORE INTO tags (tagid, userid) VALUES ({tag_id}, {user})")
elif state == "remove": elif state == "remove":
print(f"remove {tag_id} from {users}")
c.execute(f"DELETE FROM tags WHERE (tagid = {tag_id} AND userid = {user}) ") c.execute(f"DELETE FROM tags WHERE (tagid = {tag_id} AND userid = {user}) ")
conn.commit() conn.commit()
finished = queue_item finished = queue_item