rwitz commited on
Commit
2eb257d
1 Parent(s): d51f0d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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, server_api=ServerApi('1'))
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