Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -57,8 +57,8 @@ 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["
|
62 |
return collection
|
63 |
|
64 |
import json
|
|
|
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_ratings"]
|
61 |
+
collection = db["elo_ratings"]
|
62 |
return collection
|
63 |
|
64 |
import json
|