From e4063edc8b1e1aa07966e070bfebb1d6946382f1 Mon Sep 17 00:00:00 2001 From: JohanGallardo Date: Thu, 2 May 2024 18:26:06 -0400 Subject: [PATCH] remove .env variable for mongodb connection --- src/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.py b/src/app.py index ed17b57..5ea03c7 100644 --- a/src/app.py +++ b/src/app.py @@ -35,7 +35,7 @@ uri = f"mongodb://{root_username}:{root_password}@mongodb:27017/db?authSource=admin" #3 client = pymongo.MongoClient(uri) #4 -db = client[os.getenv("MONGO_DBNAME")] # store a reference to the database +db = client['Cluster0'] # store a reference to the database # the following try/except block is a way to verify that the database connection is alive (or not) try: