Skip to content

Commit

Permalink
chore: Remove unused import in auth.py and add type hint in main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
fcarboni committed Aug 9, 2024
1 parent 0a3f9bb commit 0b5de28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions app/auth.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from fastapi import Depends, HTTPException, Request

from fastapi import Depends, Request
from sqlalchemy.orm import Session

from app.database import User, get_db
Expand Down
2 changes: 1 addition & 1 deletion app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ async def login(
username = username.strip().lower()

try:
user = execute_with_retries(query_user, db, username)
user: User = execute_with_retries(query_user, db, username)
except OperationalError:
return HTMLResponse("Error al acceder a la base de datos. Inténtalo de nuevo más tarde.", status_code=500)

Expand Down

0 comments on commit 0b5de28

Please sign in to comment.