From 51d551075212b9a3507985e8cce2e768eef998c1 Mon Sep 17 00:00:00 2001 From: yznahmad Date: Fri, 20 Jun 2025 04:34:09 +0300 Subject: [PATCH] Add schedulerements wwwww ddd --- .env | 4 ++-- helpers/.env | 4 ++-- helpers/create_account.py | 2 +- worker/main.py | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.env b/.env index 2884588..51d4bfb 100644 --- a/.env +++ b/.env @@ -1,8 +1,8 @@ MONGO_INITDB_ROOT_USERNAME=your_username MONGO_INITDB_ROOT_PASSWORD=your_secure_password -MONGO_INITDB_DATABASE=InfinityGym +MONGO_INITDB_DATABASE=Infinity NODE_ENV=production -DB_URI=mongodb://${MONGO_INITDB_ROOT_USERNAME}:${MONGO_INITDB_ROOT_PASSWORD}@mongodb:27017/InfinityGym?authSource=admin +DB_URI=mongodb://${MONGO_INITDB_ROOT_USERNAME}:${MONGO_INITDB_ROOT_PASSWORD}@mongodb:27017/Infinity?authSource=admin NEXT_PUBLIC_API_URL=http://localhost:3000 ADMIN_USERNAME=admin ADMIN_PASSWORD=your_secure_admin_password diff --git a/helpers/.env b/helpers/.env index d21b9e5..c28daae 100644 --- a/helpers/.env +++ b/helpers/.env @@ -1,8 +1,8 @@ MONGO_INITDB_ROOT_USERNAME=your_username MONGO_INITDB_ROOT_PASSWORD=your_secure_password -MONGO_INITDB_DATABASE=InfinityGym +MONGO_INITDB_DATABASE=Infinity -DB_URI=mongodb://${MONGO_INITDB_ROOT_USERNAME}:${MONGO_INITDB_ROOT_PASSWORD}@mongodb:27017/InfinityGym?authSource=admin +DB_URI=mongodb://${MONGO_INITDB_ROOT_USERNAME}:${MONGO_INITDB_ROOT_PASSWORD}@mongodb:27017/Infinity?authSource=admin ADMIN_USERNAME=admin ADMIN_PASSWORD=your_secure_admin_password diff --git a/helpers/create_account.py b/helpers/create_account.py index 787d6a6..232d82a 100644 --- a/helpers/create_account.py +++ b/helpers/create_account.py @@ -27,7 +27,7 @@ def main(): client = pymongo.MongoClient(DB_URI) # create the account - db = client['InfinityGym'] + db = client['Infinity'] user_coll = db['users'] user_coll.insert_one({ diff --git a/worker/main.py b/worker/main.py index 9b268b7..64a038a 100644 --- a/worker/main.py +++ b/worker/main.py @@ -13,7 +13,7 @@ class MAIN(): self.db_client : {} = pymongo.MongoClient(os.getenv("DB_URI")) self.log_dir : str = 'logs' self.log_file : str = 'scheduler.log' - self.db_name = "InfinityGym" + self.db_name = "Infinity" # statistics def save_this_week_overview_into_this_month(self):