Add no_text options

This commit is contained in:
Midgard 2020-02-25 19:05:21 +01:00
parent 36bdee3689
commit 2892a7dc25
Signed by: midgard
GPG key ID: 511C112F1331BBB4
5 changed files with 8 additions and 8 deletions

View file

@ -85,7 +85,7 @@ class HldsSemanticActions:
name=ast["name"],
description=ast["description"],
price=ast["price"] or 0,
tags=ast["tags"],
tags=ast["tags"] or [],
)
noindent_choice_entry = indent_choice_entry

View file

@ -170,7 +170,7 @@ def order_item_create(order_id: int) -> typing.Any:
return option.name
except AttributeError:
return ", ".join(o.name for o in option)
comments = [_name(option) for option in chosen if option]
comments = [_name(option) for option in chosen if option and "no_text" not in option.tags]
if item.comment:
comments.append("Comment: " + item.comment)
item.comment = "; ".join(comments)

View file

@ -16,7 +16,7 @@ bowl_wrap: Bowl of wrap
red_beet_wrap: Rodebietenwrap € 0.99
veggie: Vegetarische opties
meat: Niet vegetarisch :: {has_meat}
meat: Niet vegetarisch :: {has_meat} {no_text}
tofu: Vegetarisch met tofu
tempeh: Vegetarisch met tempeh -- Gekruide tempeh
avocado: Vegetarisch met avocado
@ -24,7 +24,7 @@ veggie: Vegetarische opties
vegan: Veganistisch
veggie_on_veggie_dish: Vegetarische opties
veggie: Vegetarisch (met standaard eiwitgerief van gerecht)
veggie: Vegetarisch (met standaard eiwitgerief van gerecht) :: {no_text}
tofu: Vegetarisch met tofu
tempeh: Vegetarisch met tempeh -- Gekruide tempeh
avocado: Vegetarisch met avocado
@ -32,7 +32,7 @@ veggie_on_veggie_dish: Vegetarische opties
vegan: Veganistisch
veggie_on_vegan_dish: Vegetarische opties
vegan: Veganistisch
vegan: Veganistisch :: {no_text}
tofu: Vegetarisch met tofu
tempeh: Vegetarisch met tempeh -- Gekruide tempeh
avocado: Vegetarisch met avocado

View file

@ -28,8 +28,8 @@ sauce: Saus
other: Andere (in commentaar)
extra_cheese: Extra kaas
no_extra_cheese: Nee
yes_extra_cheese: Ja € 0.2
no_extra_cheese: Geen extra kaas :: {no_text}
yes_extra_cheese: Extra kaas € 0.2
dish chicken_fingers: Kippenvingers :: {has_meat} € 3
dish nuggiz: Nuggiz :: {has_meat} € 3

View file

@ -22,7 +22,7 @@ size: Grootte
large: Large -- 37 cm € 15.95
garlic_sauce: Looksaus
no_garlic_sauce: Zonder looksaus
no_garlic_sauce: Geen extra looksaus :: {no_text}
yes_garlic_sauce: Met looksaus (prijs onzeker) € 0.75
dish margherita: Pizza margherita -- Veggie