Skip to content

Commit

Permalink
fix: fix allergen highlights (#48)
Browse files Browse the repository at this point in the history
fix highlight parsing
  • Loading branch information
jkerola authored Feb 26, 2024
1 parent 7ab9eea commit bb6ae91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jmenu/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,5 @@ def _parse_items(data: list[dict], relevant_menus: list[str] = []) -> list[MenuI
for opt in mealopts:
for item in opt["menuItems"]:
if item["name"] not in SKIPPED_ITEMS and len(item["name"]) > 0:
items.append(MenuItem(item["name"], item["diets"].split(" ")))
items.append(MenuItem(item["name"], item["diets"].split(",")))
return items

0 comments on commit bb6ae91

Please sign in to comment.