commit
d47c229c73
@ -15,6 +15,6 @@ for num in range(100):
|
|||||||
email = fake.email()
|
email = fake.email()
|
||||||
phone = fake.phone_number()
|
phone = fake.phone_number()
|
||||||
# Save in database
|
# Save in database
|
||||||
mi_contacto = Contact(name, surname, email, phone)
|
mi_contacto = Contact(name=name, surname=surname, email=email, phone=phone)
|
||||||
db.session.add(mi_contacto)
|
db.session.add(mi_contacto)
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
|
Loading…
Reference in New Issue
Block a user