We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent badbce4 commit f8f633eCopy full SHA for f8f633e
V2/time_tracker/_infrastructure/_config.py
@@ -1,6 +1,8 @@
1
import typing
2
import os
3
4
+CONNECTION_STRING = 'postgresql://root:root@localhost:5433/timetracker'
5
+
6
7
class Config(typing.NamedTuple):
8
DB_CONNECTION_STRING: str
@@ -11,7 +13,7 @@ class Config(typing.NamedTuple):
11
13
12
14
def load_config():
15
return Config(
- os.environ.get("DB_CONNECTION_STRING"),
16
+ CONNECTION_STRING if os.environ.get("DB_CONNECTION_STRING") is None else os.environ.get("DB_CONNECTION_STRING"),
17
os.environ.get("DB_USER"),
18
os.environ.get("DB_PASS"),
19
os.environ.get("DB_NAME")
0 commit comments