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:
parent
c8fc67fa2b
commit
c06c511dc9
@ -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 = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user