randydev commited on
Commit
4d6a968
·
verified ·
1 Parent(s): 08c8c0f

Update database.py

Browse files
Files changed (1) hide show
  1. 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
- from config import MONGO_URL
 
 
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: