Spaces:
Paused
Paused
Commit ·
6677ff2
1
Parent(s): 979e812
upd db name
Browse files12341 unmodified line678910# app/db.pyimport motor.motor_asynciofrom gridfs import GridFSBucket1 unmodified lineMONGO_URI = os.getenv("MONGODB_URI")client = motor.motor_asyncio.AsyncIOMotorClient(MONGO_URI)db = client.get_default_database()grid_fs_bucket = GridFSBucket(db)1231 unmodified line5678910# app/db.pyimport motor.motor_asynciofrom gridfs import GridFSBucket1 unmodified lineMONGO_URI = os.getenv("MONGODB_URI")client = motor.motor_asyncio.AsyncIOMotorClient(MONGO_URI)MONGO_DB_NAME = os.getenv("MONGODB_DB", "querysearcher") # fallback defaultdb = client[MONGO_DB_NAME]grid_fs_bucket = GridFSBucket(db)
app/db.py+2-2