forked from bton/matekasse
Test print
This commit is contained in:
parent
e62dd088a4
commit
cf4dce5bfe
1 changed files with 3 additions and 1 deletions
4
main.py
4
main.py
|
@ -256,7 +256,9 @@ def get_id():
|
||||||
message = tag_id
|
message = tag_id
|
||||||
elif state == "remove":
|
elif state == "remove":
|
||||||
c.execute(f"SELECT * FROM tags WHERE (tagid = {tag_id} AND userid = {user})")
|
c.execute(f"SELECT * FROM tags WHERE (tagid = {tag_id} AND userid = {user})")
|
||||||
if c.fetchall != []:
|
tags = c.fetchall()
|
||||||
|
print(f"tags: {tags}")
|
||||||
|
if tags != []:
|
||||||
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}) ")
|
||||||
message = tag_id
|
message = tag_id
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue