From 4cbc4473de89957438fc65deff4eaef4993e9c32 Mon Sep 17 00:00:00 2001 From: Midgard Date: Wed, 15 Sep 2021 21:14:21 +0200 Subject: [PATCH] Add custom item to each location --- app/hlds/parser.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/hlds/parser.py b/app/hlds/parser.py index c1bb88d..3f46b3e 100644 --- a/app/hlds/parser.py +++ b/app/hlds/parser.py @@ -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"]}