From 6d84c625a2e8a12eee248f8067ffb782182e6bf7 Mon Sep 17 00:00:00 2001 From: Game_Time <108236317+RayBytes@users.noreply.github.com> Date: Sat, 19 Aug 2023 19:25:45 +0500 Subject: [PATCH 1/3] change .getenv to .enviorn --- api/db/logs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/db/logs.py b/api/db/logs.py index a6a4adc..9e54bc4 100644 --- a/api/db/logs.py +++ b/api/db/logs.py @@ -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] From 8719efd6198bd32d384167b711789da74204f069 Mon Sep 17 00:00:00 2001 From: Game_Time <108236317+RayBytes@users.noreply.github.com> Date: Sat, 19 Aug 2023 19:26:14 +0500 Subject: [PATCH 2/3] Update stats.py to enviorn --- api/db/stats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] From e3f938bb1ae05895bef03e1e31f22fa3db87b5e1 Mon Sep 17 00:00:00 2001 From: Game_Time <108236317+RayBytes@users.noreply.github.com> Date: Sat, 19 Aug 2023 19:26:37 +0500 Subject: [PATCH 3/3] Update users.py to enviorn --- api/db/users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/db/users.py b/api/db/users.py index 23a49e5..af0a468 100644 --- a/api/db/users.py +++ b/api/db/users.py @@ -35,7 +35,7 @@ class UserManager: """ 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]