From 08ba280e3fced5383eb88dfda8ca8438fbe61021 Mon Sep 17 00:00:00 2001 From: Sebastian Espei Date: Fri, 5 Jun 2026 23:35:57 +0200 Subject: [PATCH] Add Bundesweit as location when needed --- scripts/03_generate_public_holidays_ics.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/03_generate_public_holidays_ics.py b/scripts/03_generate_public_holidays_ics.py index d4369fc..5338ea4 100644 --- a/scripts/03_generate_public_holidays_ics.py +++ b/scripts/03_generate_public_holidays_ics.py @@ -70,6 +70,9 @@ def build_description(state_codes: list[str], own_state_code: str | None = None) def build_location(state_codes: list[str], own_state_code: str | None = None) -> str: ordered_codes = ordered_state_codes(state_codes, own_state_code=own_state_code) + if set(ordered_codes) == ALL_STATE_CODES: + return "Bundesweit" + return ", ".join(ordered_codes)