From cf4dce5bfe85ee87a3a7738c401f5a9fe643bac7 Mon Sep 17 00:00:00 2001 From: 2000-Trek Date: Wed, 14 Jun 2023 21:43:41 +0200 Subject: [PATCH] Test print --- main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index cb60ab5..938dedc 100644 --- a/main.py +++ b/main.py @@ -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: