From 0ab0824913d269516172ca681e1b9ce9d51e9119 Mon Sep 17 00:00:00 2001 From: Midgard Date: Sat, 26 Sep 2020 00:30:40 +0200 Subject: [PATCH] Remove disused labels --- app/forms.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/forms.py b/app/forms.py index 92be9c5..1317c21 100644 --- a/app/forms.py +++ b/app/forms.py @@ -59,10 +59,7 @@ class OrderItemForm(Form): submit_button = SubmitField("Submit") def populate(self, location: Location) -> None: - self.dish_id.choices = [ - (dish.id, (dish.name + ": " + price_range_string(dish.price_range()))) - for dish in location.dishes - ] + self.dish_id.choices = [(dish.id, dish.name) for dish in location.dishes] if not self.is_submitted() and self.comment.data is None: self.comment.data = request.args.get("comment")