forked from bton/matekasse
This commit is contained in:
parent
46323b0ef4
commit
ef9e53576f
1 changed files with 1 additions and 0 deletions
1
main.py
1
main.py
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue