zyliu commited on
Commit
ad29e91
1 Parent(s): 525af2f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,11 +4,11 @@ import pymongo
4
  from pymongo.server_api import ServerApi
5
  import os
6
 
7
- # Connect to MongoDB database
8
  # client = pymongo.MongoClient("mongodb://localhost:27017/")
9
  # db = client["todo_db"]
10
 
11
  uri = os.environ.get("mongo_uri", None)
 
12
  # Create a new client and connect to the server
13
  client = pymongo.MongoClient(uri, server_api=ServerApi('1'))
14
  db = client["todo_db"]
 
4
  from pymongo.server_api import ServerApi
5
  import os
6
 
 
7
  # client = pymongo.MongoClient("mongodb://localhost:27017/")
8
  # db = client["todo_db"]
9
 
10
  uri = os.environ.get("mongo_uri", None)
11
+ print(f"uri: {uri}")
12
  # Create a new client and connect to the server
13
  client = pymongo.MongoClient(uri, server_api=ServerApi('1'))
14
  db = client["todo_db"]