Skip to content

Commit

Permalink
fix: 학생회관 채식 마크 대응 (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
GanziDaeyong authored Jan 16, 2024
1 parent 14d4769 commit 3fd6a89
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crawlers/base_crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,9 @@ def normalize(self, meal, **kwargs):

class FindParenthesisHash(MealNormalizer):
def normalize(self, meal, **kwargs):
if "(#)" in meal.name or "< 채식뷔페 >:" in meal.name:
meal.set_name(meal.name.replace("(#)", ""))
# 학생회관 no-meat 메뉴 마크: (#), [#]
if "(#)" in meal.name or "[#]" in meal.name or "< 채식뷔페 >:" in meal.name:
meal.set_name(meal.name.replace("(#)", "").replace("[#]", ""))
meal.etc.append("No meat")
return meal

Expand Down

0 comments on commit 3fd6a89

Please sign in to comment.