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
South African Public Holidays Naming and Duplicates #285
Comments
nice remarks! |
Thanks for looking at this @brunobord I was thinking about it and wanted to know if it is meant for the package user to ensure a distinct holiday is on a specific day. Ie. if there are 2 or more on a single date, then package user need to ensure only first one is used for example. I assume the first item in the iterator will be the generic name. I think the generic good friday, boxing day and easter monday are causing the duplicates. So perhaps we just leave it as is.
|
refs #285 Cleans up SouthAfrica class and tests to take into account the specs of holidays that vary over the periods. As a side-effect, it effectively cleans the duplicates that were generated by the previous code.
See linked PR that implements changes. It was hard work, but it made me clean up a lot of bizarre lines of code :o) |
Thanks @brunobord everything looking good just made a small change for one of the labels |
refs #285 Cleans up SouthAfrica class and tests to take into account the specs of holidays that vary over the periods. As a side-effect, it effectively cleans the duplicates that were generated by the previous code.
FYI, I've just released the v3.1.0 of workalendar that ships all the fixes. Happy upgrading! |
Setup
workalendar==3.0.0
Python 3.6.4
Issue
The South Africa public holidays gives:
The problems:
Family Day should be removed
Boxing Day should be removed
You can view my source of South African public holidays here
The text was updated successfully, but these errors were encountered: