Spaces:
Sleeping
Sleeping
Update database.py
Browse files- database.py +2 -1
database.py
CHANGED
|
@@ -10,9 +10,10 @@ load_dotenv()
|
|
| 10 |
|
| 11 |
# --- Configuration ---
|
| 12 |
# Get connection string from environment variable or replace directly
|
|
|
|
| 13 |
# Example local URI: "mongodb://localhost:27017/"
|
| 14 |
# Example Atlas URI: "mongodb+srv://<username>:<password>@clustername.mongodb.net/..."
|
| 15 |
-
MONGO_URI = os.environ.get("
|
| 16 |
DB_NAME = "amhci_data_db"
|
| 17 |
COLLECTION_NAME = "checkin_entries"
|
| 18 |
# ---------------------
|
|
|
|
| 10 |
|
| 11 |
# --- Configuration ---
|
| 12 |
# Get connection string from environment variable or replace directly
|
| 13 |
+
#os.environ.get("mongodb+srv://Wellshift:Wellshift2025hack@cluster0.wtydpqz.mongodb.net/?appName=Cluster0")
|
| 14 |
# Example local URI: "mongodb://localhost:27017/"
|
| 15 |
# Example Atlas URI: "mongodb+srv://<username>:<password>@clustername.mongodb.net/..."
|
| 16 |
+
MONGO_URI = os.environ.get("MONGO_URI")
|
| 17 |
DB_NAME = "amhci_data_db"
|
| 18 |
COLLECTION_NAME = "checkin_entries"
|
| 19 |
# ---------------------
|