fixed importer loading empty ingredients
This commit is contained in:
@ -125,6 +125,7 @@ def get_from_scraper(scrape, request):
|
||||
recipe_json['source_url'] = ''
|
||||
|
||||
try:
|
||||
if scrape.author():
|
||||
keywords.append(scrape.author())
|
||||
except:
|
||||
pass
|
||||
@ -160,6 +161,7 @@ def get_from_scraper(scrape, request):
|
||||
|
||||
try:
|
||||
for x in scrape.ingredients():
|
||||
if x.strip() != '':
|
||||
try:
|
||||
amount, unit, ingredient, note = ingredient_parser.parse(x)
|
||||
ingredient = {
|
||||
|
Reference in New Issue
Block a user