randydev commited on
Commit
fa7edd5
·
verified ·
1 Parent(s): fbaa051

Update database.py

Browse files
Files changed (1) hide show
  1. database.py +5 -0
database.py CHANGED
@@ -8,12 +8,17 @@ 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:
19
  self.client: AgnosticClient = motor_asyncio.AsyncIOMotorClient(uri)
 
8
 
9
  from motor import motor_asyncio
10
  from motor.core import AgnosticClient
11
+ from motor.motor_asyncio import AsyncIOMotorClient
12
 
13
  from logger import LOGS
14
 
15
  load_dotenv()
16
  MONGO_URL = os.environ["MONGO_URL"]
17
 
18
+ client_lang = AsyncIOMotorClient(MONGO_URL)
19
+ dbs = client_lang["Akeno"]
20
+ users_collection = dbs["gemini_model"]
21
+
22
  class Database:
23
  def __init__(self, uri: str) -> None:
24
  self.client: AgnosticClient = motor_asyncio.AsyncIOMotorClient(uri)