mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2025-12-24 02:39:20 -05:00
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:
@@ -203,7 +203,7 @@ class IngredientParser:
|
||||
def parse(self, x):
|
||||
# initialize default values
|
||||
amount = 0
|
||||
unit = ''
|
||||
unit = None
|
||||
ingredient = ''
|
||||
note = ''
|
||||
unit_note = ''
|
||||
|
||||
Reference in New Issue
Block a user