Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 29, 2024
1 parent 35855d3 commit 4e09abd
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions core/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
from schema.hash import Hash
from schema.token import create_access_token

router = APIRouter(prefix="/login", tags=["Authentication"],)
router = APIRouter(
prefix="/login",
tags=["Authentication"],
)


@router.post("/")
Expand All @@ -33,9 +36,9 @@ def login(
Returns:
Hash: Hash
"""
user: schemas.User = db.query(models.User).filter(
models.User.email == request.username
).first()
user: schemas.User = (
db.query(models.User).filter(models.User.email == request.username).first()
)
if not user:
raise HTTPException(
status_code=status.HTTP_404_NOT_FOUND, detail="Invalid Credentials"
Expand Down

0 comments on commit 4e09abd

Please sign in to comment.