Spaces:
Sleeping
Sleeping
Commit
·
d6261d3
1
Parent(s):
84150a6
Update remainder.py (#6)
Browse files- Update remainder.py (40045f8374e18aad0836e9a5433a86b748e6089a)
Co-authored-by: Sachin Verma <[email protected]>
- remainder.py +2 -1
remainder.py
CHANGED
@@ -4,7 +4,8 @@ import uuid
|
|
4 |
import os
|
5 |
from pymongo import MongoClient
|
6 |
|
7 |
-
uri = os.environ["MONGO_CONNECTION_STRING"]
|
|
|
8 |
client = MongoClient(uri,tlsCertificateKeyFile= "cert.pem")
|
9 |
|
10 |
db = client["mydata"]
|
|
|
4 |
import os
|
5 |
from pymongo import MongoClient
|
6 |
|
7 |
+
# uri = os.environ["MONGO_CONNECTION_STRING"]
|
8 |
+
uri = "mongodb+srv://cluster0.j2p0gjo.mongodb.net/?authSource=%24external&authMechanism=MONGODB-X509&retryWrites=true&w=majority"
|
9 |
client = MongoClient(uri,tlsCertificateKeyFile= "cert.pem")
|
10 |
|
11 |
db = client["mydata"]
|