rwitz commited on
Commit
ec9d3d3
·
verified ·
1 Parent(s): 4775fe6

Update app.py

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