rwitz commited on
Commit
12c710b
·
verified ·
1 Parent(s): 5f561db

Update app.py

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