diff --git a/api/db/stats.py b/api/db/stats.py index 1317a05..53bc17c 100644 --- a/api/db/stats.py +++ b/api/db/stats.py @@ -23,7 +23,7 @@ class StatsManager: """ def __init__(self): - self.conn = AsyncIOMotorClient(os.getenv('MONGO_URI')) + self.conn = AsyncIOMotorClient(os.environ['MONGO_URI']) async def _get_collection(self, collection_name: str): return self.conn[os.getenv('MONGO_NAME', 'nova-test')][collection_name]