Skip to content

Commit

Permalink
Fix allergen scraper
Browse files Browse the repository at this point in the history
  • Loading branch information
niknetniko committed Sep 29, 2024
1 parent ecf2128 commit a809828
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/scraper/resto/allergens.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ def parse_section_item(section_item: str) -> Union[dict[str, list[str]], None]:
if "soep van de dag" in section_item:
item_name = "Soep van de dag"
item_allergen_list = section_item
elif ":" not in section_item: # Sometimes, it is just a message, so ignore it.
return None
else:
item_name, item_allergen_list = section_item.rsplit(":", maxsplit=1)

Expand Down

0 comments on commit a809828

Please sign in to comment.