Remove disused labels

This commit is contained in:
Midgard 2020-09-26 00:30:40 +02:00
parent 7856302028
commit 0ab0824913
Signed by: midgard
GPG key ID: 511C112F1331BBB4

View file

@ -59,10 +59,7 @@ class OrderItemForm(Form):
submit_button = SubmitField("Submit") submit_button = SubmitField("Submit")
def populate(self, location: Location) -> None: def populate(self, location: Location) -> None:
self.dish_id.choices = [ self.dish_id.choices = [(dish.id, dish.name) for dish in location.dishes]
(dish.id, (dish.name + ": " + price_range_string(dish.price_range())))
for dish in location.dishes
]
if not self.is_submitted() and self.comment.data is None: if not self.is_submitted() and self.comment.data is None:
self.comment.data = request.args.get("comment") self.comment.data = request.args.get("comment")