Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

match both local.city-of-london and local.city-of-london-alder #116

Merged
merged 1 commit into from
Dec 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
match both local.city-of-london and local.city-of-london-alder
  • Loading branch information
chris48s committed Dec 11, 2024
commit c6ffc6201b9709f41866cf92cdd27ef5d76931bb
6 changes: 3 additions & 3 deletions postcode_lookup/template_sorter.py
Original file line number Diff line number Diff line change
@@ -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(
Loading