Skip to content

Commit 4cd0900

Browse files
authored
Merge pull request #36 from magul/python-fixes
Multiple minor python fixes
2 parents d878f51 + b77d725 commit 4cd0900

File tree

5 files changed

+2
-2
lines changed

5 files changed

+2
-2
lines changed

backend/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def create_app():
1414

1515
@jwt.token_in_blacklist_loader
1616
def check_if_token_revoked(decoded_token):
17-
return is_token_revoked(decoded_token)
17+
return auth.is_token_revoked(decoded_token)
1818

1919
return app
2020

backend/blueprints/auth.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
get_jwt_identity, jwt_required, jwt_optional, get_raw_jwt
1010
)
1111
from marshmallow import ValidationError
12+
from sqlalchemy.orm.exc import NoResultFound
1213

1314

1415
auth_blueprint = Blueprint('auth', __name__, url_prefix='/auth')
-2.28 KB
Binary file not shown.
Binary file not shown.

backend/models.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from sqlalchemy.types import DateTime
55
from sqlalchemy.types import String
66
from sqlalchemy.types import Integer
7-
from flask_sqlalchemy import SQLAlchemy
87
from werkzeug.security import generate_password_hash, check_password_hash
98

109
from backend.extensions import db

0 commit comments

Comments
 (0)