Skip to content

Commit

Permalink
Do not append duplicate messages
Browse files Browse the repository at this point in the history
  • Loading branch information
niknetniko committed Feb 12, 2024
1 parent 5f9b851 commit e866f3b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/scraper/resto/menu_manual.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ def restjesmaand18_replacer(_path, original):

def add_or_append(menu, message):
if "message" in menu:
menu["message"] += "\n" + message
if message not in message["message"]:
menu["message"] += "\n" + message
else:
menu["message"] = message

Expand Down

0 comments on commit e866f3b

Please sign in to comment.