Skip to content

Conversation

@Lawiss
Copy link

@Lawiss Lawiss commented Feb 14, 2022

Updates the method holidays_for_year_and_zone to only output the data for desired zone.
The method now has the following output:

{datetime.date(1990, 10, 27): True,
 datetime.date(1990, 10, 28): True,
 datetime.date(1990, 10, 29): True,
 datetime.date(1990, 10, 30): True,
 datetime.date(1990, 10, 31): True,
...
}

instead of something like:

{datetime.date(1990, 10, 27): {'date': datetime.date(1990, 10, 27),
  'vacances_zone_a': True,
  'vacances_zone_b': True,
  'vacances_zone_c': True,
  'nom_vacances': 'Vacances de la Toussaint'},
 datetime.date(1990, 10, 28): {'date': datetime.date(1990, 10, 28),
  'vacances_zone_a': True,
  'vacances_zone_b': True,
  'vacances_zone_c': True,
  'nom_vacances': 'Vacances de la Toussaint'},
...
}

Updates the method `holidays_for_year_and_zone` to only output the data for desired zone
@Lawiss Lawiss changed the title Updates holidays_for_year_and_zone to avoid unecessary output Updates holidays_for_year_and_zone to avoid unnecessary output Feb 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant