Skip to content

Commit

Permalink
Update recipe_scrapers/barefootinthepines.py
Browse files Browse the repository at this point in the history
Co-authored-by: James Addison <55152140+jayaddison@users.noreply.github.com>
  • Loading branch information
jknndy and jayaddison authored Oct 1, 2024
1 parent 9a8f37e commit 3452777
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions recipe_scrapers/barefootinthepines.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ def ingredient_groups(self):
)

def nutrients(self):
nutrition_data = {}
nutrition_container = self.soup.select_one(".mv-create-nutrition-box")
if not nutrition_container:
return nutrition_data
return None

nutrition_data = {}
for item in nutrition_container.select(".mv-create-nutrition-item"):
label = item.select_one(".mv-create-nutrition-label")
if label:
Expand Down

0 comments on commit 3452777

Please sign in to comment.