mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2025-12-24 02:39:20 -05:00
update ATK scrape to handle empty headnote
This commit is contained in:
@@ -46,8 +46,12 @@ class CooksIllustrated(AbstractScraper):
|
||||
def instructions(self):
|
||||
if not self.recipe:
|
||||
self.get_recipe()
|
||||
if 'headnote' in self.recipe:
|
||||
i = ['Note: ' + self.recipe.get('headnote', '')]
|
||||
else:
|
||||
i = []
|
||||
return "\n".join(
|
||||
['Note: ' + self.recipe.get('headnote', '')]
|
||||
i
|
||||
+ [self.recipe['whyThisWorks']]
|
||||
+ [
|
||||
instruction['fields']['content']
|
||||
|
||||
Reference in New Issue
Block a user