Skip to content

Commit

Permalink
make toc_id unique on (poll date, registration deadline)
Browse files Browse the repository at this point in the history
  • Loading branch information
chris48s committed Nov 4, 2024
1 parent 8720b28 commit 6d8956b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions postcode_lookup/template_sorter.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def toc_label(self):

@property
def toc_id(self):
return f"voter-registration-{self.timetable.registration_deadline}"
return f"voter-registration-{self.timetable.poll_date}-{self.timetable.registration_deadline}"


class CityOfLondonRegistrationDateSection(RegistrationDateSection):
Expand All @@ -192,7 +192,7 @@ def toc_label(self):

@property
def toc_id(self):
return f"voter-registration-col-{self.timetable.registration_deadline}"
return f"voter-registration-col-{self.timetable.poll_date}-{self.timetable.registration_deadline}"


class ElectionDateTemplateSorter:
Expand Down

0 comments on commit 6d8956b

Please sign in to comment.