From 1cf1a1313ac49f3bd2c7d3d9a0f83a7b8415cc01 Mon Sep 17 00:00:00 2001 From: Hannes Hansen Date: Thu, 4 Jan 2024 10:09:56 +0100 Subject: [PATCH] removed debug logs --- main.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/main.py b/main.py index c73339a..0fc60be 100644 --- a/main.py +++ b/main.py @@ -186,7 +186,6 @@ def delete(self, flow_id): """Deletes a flow.""" user_id = get_user_id(request) f = flows.find_one({'$and': [{'_id': ObjectId(flow_id)}, {'userId': user_id}]}) - print(f) if f is not None: flows.delete_one({'_id': ObjectId(flow_id)}) return "Deleted", 204 @@ -196,7 +195,6 @@ def delete(self, flow_id): def get_user_id(req): user_id = req.headers.get('X-UserID') if user_id is None: - print(req.headers.get('Authorization')) user_id = jwt.decode(req.headers.get('Authorization')[7:], options={"verify_signature": False})['sub'] if user_id is None: user_id = os.getenv('DUMMY_USER', 'admin')