TxAgent-Api / db /mongo.py
Ali2206's picture
Update db/mongo.py
7e0e71d verified
raw
history blame
268 Bytes
import os
from motor.motor_asyncio import AsyncIOMotorClient
MONGO_URI = os.environ.get("MONGODB_URI")
client = AsyncIOMotorClient(MONGO_URI)
db = client.get_default_database()
patients_collection = db["patients"]
results_collection = db["patient_analysis_results"]