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