From c6ffc6201b9709f41866cf92cdd27ef5d76931bb Mon Sep 17 00:00:00 2001 From: chris48s Date: Wed, 11 Dec 2024 10:36:54 +0000 Subject: [PATCH] match both local.city-of-london and local.city-of-london-alder --- postcode_lookup/template_sorter.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/postcode_lookup/template_sorter.py b/postcode_lookup/template_sorter.py index eb8b64a..614f161 100644 --- a/postcode_lookup/template_sorter.py +++ b/postcode_lookup/template_sorter.py @@ -229,7 +229,7 @@ def __init__( self.polling_station_opening_times_str = _("7am – 10pm") if any( - ballot.ballot_paper_id.startswith("local.city-of-london.") + ballot.ballot_paper_id.startswith("local.city-of-london") for ballot in self.date_data.ballots ): self.polling_station_opening_times_str = _("8am – 8pm") @@ -253,13 +253,13 @@ def __init__( b for b in self.date_data.ballots if not b.cancelled - and b.ballot_paper_id.startswith("local.city-of-london.") + and b.ballot_paper_id.startswith("local.city-of-london") ] other_ballots = [ b for b in self.date_data.ballots if not b.cancelled - and not b.ballot_paper_id.startswith("local.city-of-london.") + and not b.ballot_paper_id.startswith("local.city-of-london") ] if len(other_ballots) > 0: enabled_sections.append(