Add schedulerements ddd
This commit is contained in:
parent
6f80339aee
commit
00bf067a17
@ -27,14 +27,14 @@ def main():
|
||||
client = pymongo.MongoClient(DB_URI)
|
||||
|
||||
# create the account
|
||||
db = client['Infinity']
|
||||
db = client['InfinityGym']
|
||||
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')
|
||||
|
||||
@ -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 = "Infinity"
|
||||
self.db_name = "InfinityGym"
|
||||
|
||||
# statistics
|
||||
def save_this_week_overview_into_this_month(self):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user