From c06c511dc9a6cb0c25d0e9ad21ce124285207cb3 Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Mon, 21 Feb 2022 15:35:36 +0100 Subject: [PATCH] changed unit default in ingredient parser to none because empty name units are not accepted by unit serializer but null values can be handled by the ingredient serializer (as a unit can be null) --- cookbook/helper/ingredient_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbook/helper/ingredient_parser.py b/cookbook/helper/ingredient_parser.py index b3f4a1c0..0b97dc6d 100644 --- a/cookbook/helper/ingredient_parser.py +++ b/cookbook/helper/ingredient_parser.py @@ -203,7 +203,7 @@ class IngredientParser: def parse(self, x): # initialize default values amount = 0 - unit = '' + unit = None ingredient = '' note = '' unit_note = ''