1
0
Fork 0
forked from anton/matekasse

Test print

This commit is contained in:
2000-Trek 2023-06-14 21:43:41 +02:00
parent e62dd088a4
commit cf4dce5bfe

View file

@ -256,7 +256,9 @@ def get_id():
message = tag_id
elif state == "remove":
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}) ")
message = tag_id
else: