Skip to content

Commit

Permalink
Merge pull request #499 from ZeusWPI/fix/allergens
Browse files Browse the repository at this point in the history
Fix allergen scraper
  • Loading branch information
niknetniko authored Sep 29, 2024
2 parents ecf2128 + a809828 commit 6a65f79
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 6a65f79

Please sign in to comment.