Skip to content

Commit

Permalink
match both local.city-of-london and local.city-of-london-alder
Browse files Browse the repository at this point in the history
  • Loading branch information
chris48s committed Dec 11, 2024
1 parent 6e4864d commit c6ffc62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions postcode_lookup/template_sorter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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(
Expand Down

0 comments on commit c6ffc62

Please sign in to comment.