From 41f27c7144b0ce929db8728aeb38e24bbaecc9c4 Mon Sep 17 00:00:00 2001 From: Luis Ventura <30115537+Lawiss@users.noreply.github.com> Date: Mon, 14 Feb 2022 18:47:08 +0100 Subject: [PATCH] Updates `holidays_for_year_and_zone` Updates the method `holidays_for_year_and_zone` to only output the data for desired zone --- vacances_scolaires_france/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vacances_scolaires_france/__init__.py b/vacances_scolaires_france/__init__.py index 8221db8..09b55a5 100644 --- a/vacances_scolaires_france/__init__.py +++ b/vacances_scolaires_france/__init__.py @@ -95,7 +95,7 @@ def holiday_for_year_by_name(self, year, name): def holidays_for_year_and_zone(self, year, zone): return { - k: v + k: v[self.zone_key(zone)] for k, v in self.holidays_for_year(year).items() if self.is_holiday_for_zone(k, zone) }