Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ password=os.environ.get("MONGODB")
|
|
51 |
def init_database():
|
52 |
uri = f"mongodb+srv://new-user:{password}@cluster0.xb2urf6.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0"
|
53 |
client = MongoClient(uri)
|
54 |
-
db = client["
|
55 |
collection = db["elo_ratings"]
|
56 |
return collection
|
57 |
|
|
|
51 |
def init_database():
|
52 |
uri = f"mongodb+srv://new-user:{password}@cluster0.xb2urf6.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0"
|
53 |
client = MongoClient(uri)
|
54 |
+
db = client["elo_ratings3"]
|
55 |
collection = db["elo_ratings"]
|
56 |
return collection
|
57 |
|