Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ import os
|
|
8 |
# client = pymongo.MongoClient("mongodb://localhost:27017/")
|
9 |
# db = client["todo_db"]
|
10 |
|
11 |
-
uri = 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"]
|
|
|
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"]
|