apKargbo commited on
Commit
bbd92f7
·
verified ·
1 Parent(s): b3810a3

Update database.py

Browse files
Files changed (1) hide show
  1. 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 = os.getenv("DB_NAME")
17
- COLLECTION_NAME = os.getenv("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