Update database.py
Browse files- database.py +3 -1
database.py
CHANGED
@@ -10,7 +10,9 @@ from motor import motor_asyncio
|
|
10 |
from motor.core import AgnosticClient
|
11 |
|
12 |
from logger import LOGS
|
13 |
-
|
|
|
|
|
14 |
|
15 |
class Database:
|
16 |
def __init__(self, uri: str) -> None:
|
|
|
10 |
from motor.core import AgnosticClient
|
11 |
|
12 |
from logger import LOGS
|
13 |
+
|
14 |
+
load_dotenv()
|
15 |
+
MONGO_URL = os.environ["MONGO_URL"]
|
16 |
|
17 |
class Database:
|
18 |
def __init__(self, uri: str) -> None:
|