From d1d568a9d3783045f731fb36e2932420b1170532 Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Thu, 19 Jan 2023 19:12:25 +0100 Subject: [PATCH] fixed import view step editor --- cookbook/tests/other/test_ingredient_parser.py | 2 ++ vue/src/apps/ImportView/ImportViewStepEditor.vue | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/cookbook/tests/other/test_ingredient_parser.py b/cookbook/tests/other/test_ingredient_parser.py index 020d729dc..b64c04565 100644 --- a/cookbook/tests/other/test_ingredient_parser.py +++ b/cookbook/tests/other/test_ingredient_parser.py @@ -75,6 +75,8 @@ def test_ingredient_parser(): # an amount # and it starts with a lowercase letter, then that # is a unit ("etwas", "evtl.") does not apply to English tho + # TODO maybe add/improve support for weired stuff like this https://www.rainbownourishments.com/vegan-lemon-tart/#recipe + ingredient_parser = IngredientParser(None, False, ignore_automations=True) count = 0 diff --git a/vue/src/apps/ImportView/ImportViewStepEditor.vue b/vue/src/apps/ImportView/ImportViewStepEditor.vue index 3a5b5a091..ec2caf495 100644 --- a/vue/src/apps/ImportView/ImportViewStepEditor.vue +++ b/vue/src/apps/ImportView/ImportViewStepEditor.vue @@ -24,10 +24,10 @@ - {{ i.amount }} - {{ i.unit.name }} - {{ i.food.name }} - ({{ i.original_text }}) + {{ i.amount.toFixed(2) }} + {{ i.unit.name }} + {{ i.food.name }} + {{ i.original_text }}