Skip to content

Commit

Permalink
remove .env variable for mongodb connection
Browse files Browse the repository at this point in the history
  • Loading branch information
JohanGallardo committed May 2, 2024
1 parent 325245c commit e4063ed
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 e4063ed

Please sign in to comment.