Skip to content

Commit

Permalink
Merge pull request #14 from software-students-spring2024/johan-tests
Browse files Browse the repository at this point in the history
remove .env variable for mongodb connection
  • Loading branch information
JohanGallardo authored May 2, 2024
2 parents 45ef7b9 + e4063ed commit 8bdcf0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8bdcf0c

Please sign in to comment.