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