Nikhil0987 commited on
Commit
63137e4
·
1 Parent(s): 1872732

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -11,7 +11,8 @@ import re
11
 
12
  from pymongo.mongo_client import MongoClient
13
 
14
- uri = os.environ["MONGO_CONNECTION_STRING"]
 
15
 
16
  # Create a new client and connect to the server
17
  client = MongoClient(uri, tlsCertificateKeyFile="cert.pem")
 
11
 
12
  from pymongo.mongo_client import MongoClient
13
 
14
+ # uri = os.environ["MONGO_CONNECTION_STRING"]
15
+ uri = "mongodb+srv://cluster0.j2p0gjo.mongodb.net/?authSource=%24external&authMechanism=MONGODB-X509&retryWrites=true&w=majority"
16
 
17
  # Create a new client and connect to the server
18
  client = MongoClient(uri, tlsCertificateKeyFile="cert.pem")