Spaces:
Sleeping
Sleeping
Update database.py
Browse files- database.py +3 -3
database.py
CHANGED
|
@@ -12,9 +12,9 @@ load_dotenv()
|
|
| 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("MONGO_URI")
|
| 16 |
-
DB_NAME =
|
| 17 |
-
COLLECTION_NAME =
|
| 18 |
# ---------------------
|
| 19 |
|
| 20 |
# Global variables for the client and collection objects
|
|
|
|
| 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("MONGO_URI", "mongodb+srv://Wellshift:Wellshift2025hack@<cluster-url>/<dbname>?retryWrites=true&w=majority")
|
| 16 |
+
DB_NAME = "amhci_data_db"
|
| 17 |
+
COLLECTION_NAME = "checkin_entries"
|
| 18 |
# ---------------------
|
| 19 |
|
| 20 |
# Global variables for the client and collection objects
|