From 76bdce68282a22ddbcdfe3452bf7758ab8915d63 Mon Sep 17 00:00:00 2001 From: smessie Date: Wed, 10 Jan 2024 23:07:40 +0100 Subject: [PATCH] Add closed because of newyear DSV --- server/scraper/resto/menu_manual.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/server/scraper/resto/menu_manual.py b/server/scraper/resto/menu_manual.py index 6e790de9..ec9415c3 100755 --- a/server/scraper/resto/menu_manual.py +++ b/server/scraper/resto/menu_manual.py @@ -638,6 +638,17 @@ def teambuilding_2023_en(_path, original): original["open"] = False return original +def newyear_dsv_2024_nl(_path, original): + add_or_append(original, "Op vrijdag 12 januari is resto De Brug gesloten, cafetaria De Brug is wel open. ") + original["open"] = True + return original + + +def newyear_dsv_2024_en(_path, original): + add_or_append(original, "On Friday January 12th, resto De Brug will be closed, cafeteria De Brug will be open.") + original["open"] = True + return original + def create_changes(root_path): return [ @@ -1309,6 +1320,20 @@ def create_changes(root_path): end=date(2023, 9, 19), all_days=True ), + ManualChange( + replacer=newyear_dsv_2024_nl, + resto=["nl-debrug", "nl"], + start=date(2024, 1, 12), + end=date(2024, 1, 12), + all_days=True + ), + ManualChange( + replacer=newyear_dsv_2024_en, + resto=["en"], + start=date(2024, 1, 12), + end=date(2024, 1, 12), + all_days=True + ), ]