def loadAdmin(self): admin1 = u('*****@*****.**','anotwell','login','Alex Notwell','5174031662') db.session.add(admin1) db.session.commit() levels = ['basic', 'admin', 'staff'] for user in u.query.all(): new_admin = a(random.randrange(0, 3), user.id) db.session.add(new_admin) db.session.commit()
def loadAdmin(self): admin1 = u('*****@*****.**', 'anotwell', 'login', 'Alex Notwell', '5174031662') db.session.add(admin1) db.session.commit() levels = ['basic', 'admin', 'staff'] for user in u.query.all(): new_admin = a(random.randrange(0, 3), user.id) db.session.add(new_admin) db.session.commit()
def load(self): newuser1 = u('*****@*****.**','dsheffey','mypass','Dona Sheffey','6141231234') newuser2 = u('*****@*****.**','mbasta','password','Milagros Basta','6141231234') newuser3 = u('*****@*****.**','ccrandle','pass1234','Chandra Crandle','6141231234') newuser4 = u('*****@*****.**','nbritt','p1a2s3s4','Neil Brittingham','6141231234') newuser5 = u('*****@*****.**','fmcray','fernpass','Fernando Mcray','6141231234') newuser6 = u('*****@*****.**','hrozar','rozpass1','Hugh Rozar','6141231234') newuser7 = u('*****@*****.**','khelt','mypassword','Kurt Helt','6141231234') newuser8 = u('*****@*****.**','efierros','passerik','Erik Fierros','6141231234') newuser9 = u('*****@*****.**','mkono','marc123','Marcie Kono','6141231234') newuser10 = u('*****@*****.**','mwafford','passwordmatt','Mathew Wafford','6141231234') newuser11 = u('*****@*****.**','kgrajales','kgpassw','Kelly Grajales','6141231234') newuser12 = u('*****@*****.**','cbrimer','cbrimpass','Cody Brimer','6141231234') newuser13 = u('*****@*****.**','bdouble','bdub123','Benita Doubleday','6141231234') newuser14 = u('*****@*****.**','dsaul','dspass','Darren Saulsberry','6141231234') newuser15 = u('*****@*****.**','eherdt','mypass12','Edwina Herdt','6141231234') newuser16 = u('*****@*****.**','lyadao','lize565','Liza Yadao','6141231234') newuser17 = u('*****@*****.**','jpanza','password999','Javier Panza','6141231234') newuser18 = u('*****@*****.**','equashie','eqpass9898','Esmeralda Quashie','6141231234') newuser19 = u('*****@*****.**','emaio','thepassword','Earlene Maio','6141231234') newuser20 = u('*****@*****.**','tseyd','tspassword','Ted Syed','6141231234') db.session.add(newuser1) db.session.add(newuser2) db.session.add(newuser3) db.session.add(newuser4) db.session.add(newuser5) db.session.add(newuser6) db.session.add(newuser7) db.session.add(newuser8) db.session.add(newuser9) db.session.add(newuser10) db.session.add(newuser11) db.session.add(newuser12) db.session.add(newuser13) db.session.add(newuser14) db.session.add(newuser15) db.session.add(newuser16) db.session.add(newuser17) db.session.add(newuser18) db.session.add(newuser19) db.session.add(newuser20) db.session.commit()
def load(self): newuser1 = u('*****@*****.**', 'dsheffey', 'mypass', 'Dona Sheffey', '6141231234') newuser2 = u('*****@*****.**', 'mbasta', 'password', 'Milagros Basta', '6141231234') newuser3 = u('*****@*****.**', 'ccrandle', 'pass1234', 'Chandra Crandle', '6141231234') newuser4 = u('*****@*****.**', 'nbritt', 'p1a2s3s4', 'Neil Brittingham', '6141231234') newuser5 = u('*****@*****.**', 'fmcray', 'fernpass', 'Fernando Mcray', '6141231234') newuser6 = u('*****@*****.**', 'hrozar', 'rozpass1', 'Hugh Rozar', '6141231234') newuser7 = u('*****@*****.**', 'khelt', 'mypassword', 'Kurt Helt', '6141231234') newuser8 = u('*****@*****.**', 'efierros', 'passerik', 'Erik Fierros', '6141231234') newuser9 = u('*****@*****.**', 'mkono', 'marc123', 'Marcie Kono', '6141231234') newuser10 = u('*****@*****.**', 'mwafford', 'passwordmatt', 'Mathew Wafford', '6141231234') newuser11 = u('*****@*****.**', 'kgrajales', 'kgpassw', 'Kelly Grajales', '6141231234') newuser12 = u('*****@*****.**', 'cbrimer', 'cbrimpass', 'Cody Brimer', '6141231234') newuser13 = u('*****@*****.**', 'bdouble', 'bdub123', 'Benita Doubleday', '6141231234') newuser14 = u('*****@*****.**', 'dsaul', 'dspass', 'Darren Saulsberry', '6141231234') newuser15 = u('*****@*****.**', 'eherdt', 'mypass12', 'Edwina Herdt', '6141231234') newuser16 = u('*****@*****.**', 'lyadao', 'lize565', 'Liza Yadao', '6141231234') newuser17 = u('*****@*****.**', 'jpanza', 'password999', 'Javier Panza', '6141231234') newuser18 = u('*****@*****.**', 'equashie', 'eqpass9898', 'Esmeralda Quashie', '6141231234') newuser19 = u('*****@*****.**', 'emaio', 'thepassword', 'Earlene Maio', '6141231234') newuser20 = u('*****@*****.**', 'tseyd', 'tspassword', 'Ted Syed', '6141231234') db.session.add(newuser1) db.session.add(newuser2) db.session.add(newuser3) db.session.add(newuser4) db.session.add(newuser5) db.session.add(newuser6) db.session.add(newuser7) db.session.add(newuser8) db.session.add(newuser9) db.session.add(newuser10) db.session.add(newuser11) db.session.add(newuser12) db.session.add(newuser13) db.session.add(newuser14) db.session.add(newuser15) db.session.add(newuser16) db.session.add(newuser17) db.session.add(newuser18) db.session.add(newuser19) db.session.add(newuser20) db.session.commit()