mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 04:10:06 -05:00
misc cleanup
This commit is contained in:
@@ -680,7 +680,6 @@ def recipe_from_source(request):
|
||||
'images': images,
|
||||
})
|
||||
|
||||
|
||||
else:
|
||||
return JsonResponse(
|
||||
{
|
||||
|
||||
@@ -163,7 +163,7 @@ def import_url(request):
|
||||
elif isinstance(ing['amount'], float) \
|
||||
or isinstance(ing['amount'], int):
|
||||
ingredient.amount = ing['amount']
|
||||
ingredient.note = ing['note'] if 'note' in ing else ''
|
||||
ingredient.note = ing['note'].strip() if 'note' in ing else ''
|
||||
|
||||
ingredient.save()
|
||||
step.ingredients.add(ingredient)
|
||||
|
||||
Reference in New Issue
Block a user