Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ password=os.environ.get("MONGODB")
|
|
16 |
|
17 |
def init_database():
|
18 |
uri = f"mongodb+srv://new-user:{password}@cluster0.xb2urf6.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0"
|
19 |
-
client = MongoClient(uri,
|
20 |
db = client["elo_ratings"]
|
21 |
collection = db["elo_ratings"]
|
22 |
return collection
|
|
|
16 |
|
17 |
def init_database():
|
18 |
uri = f"mongodb+srv://new-user:{password}@cluster0.xb2urf6.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0"
|
19 |
+
client = MongoClient(uri, ssl_cert_reqs=ssl.CERT_NONE)
|
20 |
db = client["elo_ratings"]
|
21 |
collection = db["elo_ratings"]
|
22 |
return collection
|