From 99f06955dc3b56f816112cbc92a841581883f8aa Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Wed, 13 Jan 2021 21:35:39 +0100 Subject: [PATCH] corrected servings factor --- cookbook/helper/template_helper.py | 2 +- cookbook/templates/recipe_view.html | 1 + vue/src/apps/RecipeView/RecipeView.vue | 16 +++++++++++++--- vue/src/components/CompileComponent.vue | 6 +++--- vue/src/components/Ingredient.vue | 4 ++-- vue/src/components/Nutrition.vue | 4 ++-- vue/src/components/Step.vue | 10 +++++----- vue/webpack-stats.json | 2 +- 8 files changed, 28 insertions(+), 17 deletions(-) diff --git a/cookbook/helper/template_helper.py b/cookbook/helper/template_helper.py index 8190f3a4d..f709dccc8 100644 --- a/cookbook/helper/template_helper.py +++ b/cookbook/helper/template_helper.py @@ -16,7 +16,7 @@ class IngredientObject(object): if ingredient.no_amount: self.amount = "" else: - self.amount = f"" + self.amount = f"" if ingredient.unit: self.unit = bleach.clean(str(ingredient.unit)) else: diff --git a/cookbook/templates/recipe_view.html b/cookbook/templates/recipe_view.html index 61308c50f..8b0c738ef 100644 --- a/cookbook/templates/recipe_view.html +++ b/cookbook/templates/recipe_view.html @@ -64,6 +64,7 @@