DemocracyClub / uk-election-timetables

Encapsulates timetable legislation for elections run in the United Kingdom and its devolved administrations. 🗳🕰
MIT License
3 stars 0 forks source link

feat: Register to vote deadline #10

Closed mrwilson closed 3 years ago

mrwilson commented 3 years ago

This PR adds the register to vote deadline to the library.

This required some refactoring - the base class, Election, needed knowledge of the country it is being run in so as to calculate the correct date.

The new registration_deadline method is on the base class else we would be duplicating exactly the same method in all classes.

This PR resolves https://github.com/DemocracyClub/uk-election-timetables/issues/4

symroe commented 3 years ago

:+1: This looks good - confirmed with the EC that the 12 days rule is true!