Skip to content

Commit

Permalink
removed debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
hahahannes committed Jan 4, 2024
1 parent 7f67691 commit 10b6ace
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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')
Expand Down

0 comments on commit 10b6ace

Please sign in to comment.