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

Updates holidays_for_year_and_zone to avoid unnecessary output #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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