Skip to content

Commit

Permalink
fix: 🐛 small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ConsDotPy committed Mar 27, 2024
1 parent 3f00043 commit 8516df5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
"Pydantic",
"Pytest",
"regclass",
"sessionmaker",
"sqlalchemy",
"sqlmodel",
"unauth",
"uvicorn",
Expand Down
5 changes: 0 additions & 5 deletions app/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,3 @@ def database_url(self) -> str:
auth = f'{self.dbms}://{self.username}:{self.password}'
url = f'{self.hostname}:{self.port}/{self.name}'
return f'{auth}@{url}'


# It's created when the module is imported and automatically reads the
# environment variables from the .env file or the system environment.
env = EnvSettings()
3 changes: 2 additions & 1 deletion app/oauth2.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
from jose import jwt, JWTError
from app import utils, database as db
from app.models import User, TokenData
from app.config import env
from app.config import EnvSettings

env = EnvSettings()

oauth2_scheme = OAuth2PasswordBearer(tokenUrl="login")
credentials_exception = HTTPException(
Expand Down

0 comments on commit 8516df5

Please sign in to comment.