Compare commits

..

2 Commits

Author SHA1 Message Date
73b9f7460e Add schedulerements wwwww ddd 2025-06-20 04:37:27 +03:00
51d5510752 Add schedulerements wwwww ddd 2025-06-20 04:34:09 +03:00
4 changed files with 10 additions and 10 deletions

4
.env
View File

@ -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

View File

@ -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

View File

@ -27,14 +27,14 @@ def main():
client = pymongo.MongoClient(DB_URI)
# create the account
db = client['InfinityGym']
db = client['Infinity']
user_coll = db['users']
user_coll.insert_one({
"username": args.username,
"password": hash_password(args.password)
# "username": os.getenv("ADMIN_USERNAME"),
# "password": hash_password(os.getenv("ADMIN_PASSWORD"))
# "username": args.username,
# "password": hash_password(args.password)
"username": os.getenv("ADMIN_USERNAME"),
"password": hash_password(os.getenv("ADMIN_PASSWORD"))
})
print('Account created successfully')

View File

@ -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):