From 31e14e7757b94ff66e81445caeedcd76adf5b13c Mon Sep 17 00:00:00 2001 From: 2000-Trek Date: Wed, 14 Jun 2023 21:46:10 +0200 Subject: [PATCH] Removed all print statments --- main.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/main.py b/main.py index 938dedc..24ec25d 100644 --- a/main.py +++ b/main.py @@ -15,7 +15,6 @@ c = conn.cursor() app = Flask(__name__) key = str(uuid.uuid4().hex) app.config['SESSION_TYPE'] = 'filesystem' -print(key) app.config['SECRET_KEY'] = key Session(app) socketio = SocketIO(app) @@ -179,7 +178,7 @@ def request_addtag(data): if message == "Tag already exists": socketio.emit("finished", f"{message}") else: - socketio.emit("finished", f"Added {message} to {username}", to=session[id]) #print tagid + socketio.emit("finished", f"Added {message} to {username}", to=session[id]) else: socketio.emit("busy", "busy", to=session[id]) else: @@ -209,7 +208,6 @@ def request_removetag(data): if queue_item == [data["data"], "remove", session[id]]: socketio.emit("wait", "wait", to=session[id]) i = 0 - print(session[id]) while finished != [data["data"], "remove", session[id]]: time.sleep(1) i += 1 @@ -242,11 +240,8 @@ def get_id(): tag_list = c.fetchall() if users.qsize() > 0: queue_item = users.get() - print(queue_item) user = queue_item[0] - print(f"user: {user}") state = queue_item[1] - print(state) if state == "add": c.execute(f"SELECT * FROM tags WHERE tagid={tag_id}") if c.fetchall() != []: @@ -257,7 +252,6 @@ def get_id(): elif state == "remove": c.execute(f"SELECT * FROM tags WHERE (tagid = {tag_id} AND userid = {user})") 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