Commit ea2fc03f authored by arun.uday's avatar arun.uday

second commit

parent 31985746
......@@ -10,7 +10,6 @@ from scripts.utils.mongo_sync import MongoCollectionBaseClass
obj_mongo = MongoCollectionBaseClass(mongo_client=MongoClient(), database="userDB",
collection=DatabaseConstants.collection_user_details)
project_id = "1256"
while True:
name = input("Enter the name")
email = input("Enter email")
......@@ -19,12 +18,13 @@ while True:
hashed_password = pwd_context.hash(password)
is_alive = True
user_role = "super admin"
login_type = "google"
# Create a Python datetime object
dt = datetime.datetime.now()
created_at = datetime.datetime.now()
updated_at = datetime.datetime.now()
obj_mongo.insert_one({"project_id": project_id, "name": name, "email": email, "password": hashed_password,
"user_role": user_role,
obj_mongo.insert_one({"name": name, "email": email, "password": hashed_password,
"user_role": user_role, "login_type": login_type,
"is_alive": is_alive, "created_at": created_at,
"updated_at": updated_at})
break
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment