2015-04-04 14:11:55 +02:00
|
|
|
from app import db
|
2019-09-08 02:02:16 +02:00
|
|
|
from models import Location, Product
|
2015-04-04 14:11:55 +02:00
|
|
|
|
2019-09-05 03:33:29 +02:00
|
|
|
pizzas = [
|
|
|
|
"Bolognese de luxe",
|
|
|
|
"Hawaï",
|
|
|
|
"Popeye",
|
|
|
|
"Pepperoni",
|
|
|
|
"Seafood",
|
|
|
|
"Hot pizzaaah!!!",
|
|
|
|
"Salmon delight",
|
|
|
|
"Full option",
|
|
|
|
"Pitza kebab",
|
|
|
|
"Multi cheese",
|
|
|
|
"4 Seasons",
|
|
|
|
"Mega fish",
|
|
|
|
"Creamy multi cheese",
|
|
|
|
"Green fiësta",
|
|
|
|
"Chicken bbq",
|
|
|
|
"Funky chicken",
|
|
|
|
"Veggie",
|
|
|
|
"Meat lovers" "Scampi mampi",
|
|
|
|
"Tabasco",
|
|
|
|
"Chicken time",
|
|
|
|
"Meatballs",
|
|
|
|
"Tuna",
|
|
|
|
"Anchovy",
|
|
|
|
"Calzone",
|
|
|
|
"Bbq meatballs",
|
|
|
|
"Creamy chicken",
|
|
|
|
"Hot bolognese",
|
|
|
|
]
|
2015-04-04 14:11:55 +02:00
|
|
|
|
|
|
|
|
2019-09-07 15:05:24 +02:00
|
|
|
def add() -> None:
|
2015-04-04 14:11:55 +02:00
|
|
|
simpizza = Location()
|
2019-09-05 03:33:29 +02:00
|
|
|
simpizza.configure(
|
|
|
|
"Sim-pizza",
|
|
|
|
"De Pintelaan 252 9000 Gent",
|
|
|
|
"tel: 09/321.02.00",
|
|
|
|
"http://simpizza.be",
|
|
|
|
)
|
2015-04-04 14:11:55 +02:00
|
|
|
db.session.add(simpizza)
|
|
|
|
|
|
|
|
for pizza in pizzas:
|
|
|
|
entry = Product()
|
|
|
|
entry.configure(simpizza, pizza, 1195)
|
2019-09-05 03:33:29 +02:00
|
|
|
db.session.add(entry)
|