From 6f2504059e32137213ddd6ac2fe283513963ea1f Mon Sep 17 00:00:00 2001 From: 2000-Trek Date: Fri, 9 Jun 2023 19:37:30 +0200 Subject: [PATCH] removed all print statments --- main.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/main.py b/main.py index b742a3f..7eacd63 100644 --- a/main.py +++ b/main.py @@ -123,30 +123,22 @@ def request_addtag(data): def get_id(): global finished tag_id = int(request.args.get("id")) - print(tag_id) c.execute(f"SELECT * FROM tags WHERE tagid ={tag_id}") tag_list = c.fetchall() print(tag_list) if tag_list != []: tag = tag_list[0] - print("aha") - print(users.qsize()) if users.qsize() == 0: - print("wants to change") c.execute(f"UPDATE users SET balance = balance - 1 WHERE id={tag[1]}") - print("changed") conn.commit() return make_response("True") elif users.qsize() > 0: - print("added") user = users.get() c.execute(f"INSERT OR IGNORE INTO tags (tagid, userid) VALUES ({tag_id}, {user})") conn.commit() finished = user return make_response("True") - else: - print("Error") return make_response("False")