Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple minor python fixes #36

Merged
merged 1 commit into from
Mar 6, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backend/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def create_app():

@jwt.token_in_blacklist_loader
def check_if_token_revoked(decoded_token):
return is_token_revoked(decoded_token)
return auth.is_token_revoked(decoded_token)

return app

Expand Down
1 change: 1 addition & 0 deletions backend/blueprints/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
get_jwt_identity, jwt_required, jwt_optional, get_raw_jwt
)
from marshmallow import ValidationError
from sqlalchemy.orm.exc import NoResultFound


auth_blueprint = Blueprint('auth', __name__, url_prefix='/auth')
Expand Down
Binary file removed backend/migrations/__pycache__/env.cpython-35.pyc
Binary file not shown.
Binary file not shown.
1 change: 0 additions & 1 deletion backend/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from sqlalchemy.types import DateTime
from sqlalchemy.types import String
from sqlalchemy.types import Integer
from flask_sqlalchemy import SQLAlchemy
from werkzeug.security import generate_password_hash, check_password_hash

from backend.extensions import db
Expand Down