Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
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
|