change .getenv to .enviorn

This commit is contained in:
Game_Time 2023-08-19 19:25:45 +05:00 committed by GitHub
parent 9be541fc45
commit 6d84c625a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,7 +18,7 @@ UA_SIMPLIFY = {
## MONGODB Setup
conn = AsyncIOMotorClient(os.getenv('MONGO_URI'))
conn = AsyncIOMotorClient(os.environ['MONGO_URI'])
async def _get_collection(collection_name: str):
return conn[os.getenv('MONGO_NAME', 'nova-test')][collection_name]