Add custom item to each location

This commit is contained in:
Midgard 2021-09-15 21:14:21 +02:00
parent 326b5d6b5f
commit 4cbc4473de
Signed by: midgard
GPG key ID: 511C112F1331BBB4

View file

@ -57,6 +57,15 @@ class HldsSemanticActions:
for option in first_single_choice.options:
option.price += dish.price
dish.price = 0
dishes = list(dishes)
dishes.append(Dish(
"custom",
name="Vrije keuze",
description="Zet wat je wil in comment",
price=0,
tags=[],
choices=[],
))
attributes = {att["key"]: att["value"] for att in ast["attributes"]}