Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add closed because of newyear DSV #482

Merged
merged 1 commit into from
Jan 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions server/scraper/resto/menu_manual.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've put open to True to make sure that people will still see the menu for the other locations.

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 [
Expand Down Expand Up @@ -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
),
]


Expand Down
Loading