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)
This commit is contained in:
vabene1111 2022-02-21 15:35:36 +01:00
parent c8fc67fa2b
commit c06c511dc9

View File

@ -203,7 +203,7 @@ class IngredientParser:
def parse(self, x): def parse(self, x):
# initialize default values # initialize default values
amount = 0 amount = 0
unit = '' unit = None
ingredient = '' ingredient = ''
note = '' note = ''
unit_note = '' unit_note = ''