-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c872ea8
commit 8e3c5db
Showing
3 changed files
with
10 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
from functools import lru_cache | ||
from dotenv import load_dotenv | ||
|
||
from fastapi_integration import FastApiConfig | ||
|
||
|
||
class MyConfig(FastApiConfig): | ||
telegram_chat_id: str | ||
telegram_token: str | ||
|
||
|
||
@lru_cache | ||
def get_app_settings() -> FastApiConfig: | ||
load_dotenv() | ||
return FastApiConfig() | ||
return MyConfig() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters