Skip to content

Commit

Permalink
Merge pull request #116 from DemocracyClub/crucial-dot
Browse files Browse the repository at this point in the history
match both local.city-of-london and local.city-of-london-alder
  • Loading branch information
chris48s authored Dec 11, 2024
2 parents 32fe231 + c6ffc62 commit 3294cb1
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 3294cb1

Please sign in to comment.