Skip to content

Commit

Permalink
flake 8 error
Browse files Browse the repository at this point in the history
  • Loading branch information
positive235 committed May 28, 2024
1 parent e2d885e commit bb80df5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion backend/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ def index():


if __name__ == '__main__':
app.run(debug=True, port = 5000)
app.run(debug=True, port=5000)
4 changes: 0 additions & 4 deletions backend/notesController.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,9 @@ def delete_note(note_id):
bearer = headers.get('Authorization')
if not bearer:
return jsonify({"Error": "Authorization token is missing"}), 401

token = bearer.split(' ')[1] if len(bearer.split(' ')) > 1 else None
if not token:
return jsonify({"Error": "Bearer token is invalid"}), 401

uid = verify_user(token)
if not uid:
return jsonify({"Error": "User unauthorized"}), 401
Expand All @@ -154,7 +152,5 @@ def delete_note(note_id):
return jsonify({"Success": "Note deleted successfully"}), 204




if __name__ == '__main__':
app.run(host='127.0.0.1', port=8080, debug=True)

0 comments on commit bb80df5

Please sign in to comment.