Skip to content

Commit

Permalink
fix: add python-dotenv to load .env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
AyushSehrawat authored and Gaisberg committed Oct 21, 2024
1 parent 0020ad2 commit 65a4aec
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ rank-torrent-name = "^1.0.2"
jsonschema = "^4.23.0"
scalar-fastapi = "^1.0.3"
psutil = "^6.0.0"
python-dotenv = "^1.0.1"

[tool.poetry.group.dev.dependencies]
pyright = "^1.1.352"
Expand Down
3 changes: 3 additions & 0 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
from starlette.requests import Request
from utils.cli import handle_args
from loguru import logger
from dotenv import load_dotenv

load_dotenv()


class LoguruMiddleware(BaseHTTPMiddleware):
Expand Down

0 comments on commit 65a4aec

Please sign in to comment.