Skip to content

Commit

Permalink
Really fix scraper this time
Browse files Browse the repository at this point in the history
  • Loading branch information
niknetniko committed Sep 29, 2024
1 parent 6a65f79 commit 4fd573e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/scraper/resto/allergens.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ def make_sections(
if section_header == "meer info":
continue

# Strip information about the portion size.
section_header = section_header.removesuffix("(nutrionele info per portie, afgerond op een gram)")
section_header = section_header.strip()

assert section_header not in sections

next_header_idx = (
Expand Down

0 comments on commit 4fd573e

Please sign in to comment.