Spaces:
Sleeping
Sleeping
Update remainder.py
#6
by
CosmoAI
- opened
- 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"]
|