randydev commited on
Commit
85445bc
1 Parent(s): 3cbcb98

Update database.py

Browse files
Files changed (1) hide show
  1. database.py +8 -2
database.py CHANGED
@@ -1,12 +1,18 @@
 
 
 
 
 
1
  import datetime
2
  import time
3
 
4
  from motor import motor_asyncio
5
  from motor.core import AgnosticClient
6
 
7
- from Akeno.utils.logger import LOGS
8
- from config import MONGO_URL
9
 
 
 
10
 
11
  class Database:
12
  def __init__(self, uri: str) -> None:
 
1
+ import os
2
+ from os import getenv
3
+
4
+ from dotenv import load_dotenv
5
+
6
  import datetime
7
  import time
8
 
9
  from motor import motor_asyncio
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: