zyliu commited on
Commit
d2545b9
1 Parent(s): 58e87e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,8 +7,8 @@ import os
7
  # client = pymongo.MongoClient("mongodb://localhost:27017/")
8
  # db = client["todo_db"]
9
 
10
- uri = os.environ.get("user_name", None)
11
- uri = os.environ.get("passwd", None)
12
  uri = f"mongodb+srv://{user_name}:{passwd}@cluster0.2wsoa5b.mongodb.net/?retryWrites=true&w=majority"
13
  print(f"uri: {uri}")
14
  # Create a new client and connect to the server
 
7
  # client = pymongo.MongoClient("mongodb://localhost:27017/")
8
  # db = client["todo_db"]
9
 
10
+ user_name = os.environ.get("user_name", None)
11
+ passwd = os.environ.get("passwd", None)
12
  uri = f"mongodb+srv://{user_name}:{passwd}@cluster0.2wsoa5b.mongodb.net/?retryWrites=true&w=majority"
13
  print(f"uri: {uri}")
14
  # Create a new client and connect to the server