Think this should work -- added primmadonna script
This commit is contained in:
parent
b47153de4e
commit
debca79f39
1 changed files with 38 additions and 38 deletions
|
@ -48,9 +48,9 @@ def addTA():
|
||||||
primadonna_takeaway.configure("Primadonna (takeaway laten bezorgen)", "Overpoortstraat 46 9000 Gent, tel: 0475 40 13 00", "https://www.takeaway.com/be-en/prima-donna")
|
primadonna_takeaway.configure("Primadonna (takeaway laten bezorgen)", "Overpoortstraat 46 9000 Gent, tel: 0475 40 13 00", "https://www.takeaway.com/be-en/prima-donna")
|
||||||
db.session.add(primadonna_takeaway)
|
db.session.add(primadonna_takeaway)
|
||||||
|
|
||||||
for pizza in pizzaTA.keys:
|
for pizza, price in pizzasTA.items():
|
||||||
entry = Product()
|
entry = Product()
|
||||||
entry.configure(primadonna_takeaway, pizza, pizzasTA.get(pizza, 0))
|
entry.configure(primadonna_takeaway, pizza, price)
|
||||||
db.session.add(entry)
|
db.session.add(entry)
|
||||||
|
|
||||||
pizzasAfhalen = {
|
pizzasAfhalen = {
|
||||||
|
@ -96,8 +96,8 @@ def addAfhalen():
|
||||||
primadonna_afhalen.configure("Primadonna (bellen en afhalen)", "Overpoortstraat 46 9000 Gent, tel: 0475 40 13 00", "http://primadonnagent.be/Menu.html")
|
primadonna_afhalen.configure("Primadonna (bellen en afhalen)", "Overpoortstraat 46 9000 Gent, tel: 0475 40 13 00", "http://primadonnagent.be/Menu.html")
|
||||||
db.session.add(primadonna_afhalen)
|
db.session.add(primadonna_afhalen)
|
||||||
|
|
||||||
for pizza in pizzaAfhalen.keys:
|
for pizza, price in pizzasAfhalen.items():
|
||||||
entry = Product()
|
entry = Product()
|
||||||
entry.configure(primadonna_afhalen, pizza, pizzasAfhalen.get(pizza, 0))
|
entry.configure(primadonna_afhalen, pizza, price)
|
||||||
db.session.add(entry)
|
db.session.add(entry)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue