From 4869f9596a7e3e5d56840bb060d32bd5639e1ec7 Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Sat, 17 Feb 2024 11:08:21 +0100 Subject: [PATCH] fixerd serving size parsing in property importer --- cookbook/helper/recipe_url_import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbook/helper/recipe_url_import.py b/cookbook/helper/recipe_url_import.py index 416bb54a11..aa0bb2d87d 100644 --- a/cookbook/helper/recipe_url_import.py +++ b/cookbook/helper/recipe_url_import.py @@ -231,7 +231,7 @@ def get_recipe_properties(space, property_data): 'id': pt.id, 'name': pt.name, }, - 'property_amount': parse_servings(property_data[properties[p]]) / float(property_data['servingSize']), + 'property_amount': parse_servings(property_data[properties[p]]) / parse_servings(property_data['servingSize']), }) return recipe_properties