rewrite routing to list
This commit is contained in:
+4
-2
@@ -19,9 +19,10 @@ email = input("Email-adres: ")
|
||||
full_name = input("Volledige naam: ")
|
||||
list_id = ""
|
||||
|
||||
user_cred = {"username": username, "password": password, "uuid": uuid}
|
||||
user_cred = {"username": username, "password": password, "uuid": uuid}
|
||||
user_info = {"uuid":uuid, "email": email, "name": full_name ,"listid": list_id}
|
||||
|
||||
stores_list = {"stores_name": ["Jumbo","AH","Boons","Aldi","Lidl"]}
|
||||
item_list = {"stores_name" : 1}
|
||||
|
||||
if db.user_cred.find_one({"username": username}):
|
||||
print("Username already exists\n")
|
||||
@@ -31,3 +32,4 @@ else:
|
||||
info_record = db.user_info.insert_one(user_info)
|
||||
print("User created")
|
||||
|
||||
stores_record = db.stores_list.insert_many(stores_list)
|
||||
|
||||
Reference in New Issue
Block a user