Skip to content

Commit

Permalink
Import script for St Helens (2024-05-02) (closes #6301)
Browse files Browse the repository at this point in the history
  • Loading branch information
polling-bot-4000 authored and awdem committed Mar 2, 2024
1 parent 7bb5203 commit 8dc5529
Showing 1 changed file with 23 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,30 @@
class Command(BaseXpressDemocracyClubCsvImporter):
council_id = "SHN"
addresses_name = (
"2022-10-20/2022-10-03T17:06:44.959671/Democracy_Club__20October2022.tsv"
"2024-05-02/2024-02-26T16:10:35.670143/Democracy_Club__02May2024.tsv"
)
stations_name = (
"2022-10-20/2022-10-03T17:06:44.959671/Democracy_Club__20October2022.tsv"
"2024-05-02/2024-02-26T16:10:35.670143/Democracy_Club__02May2024.tsv"
)
elections = ["2022-10-20"]
elections = ["2024-05-02"]
csv_delimiter = "\t"

def station_record_to_dict(self, record):
# Crank Recreation Ground, Crank Hill, Crank, Rainford WA11 7SD
if record.polling_place_id == "5261":
record = record._replace(
polling_place_easting="350545",
polling_place_northing="399665",
)

return super().station_record_to_dict(record)

def address_record_to_dict(self, record):
if record.addressline6 in [
# split
"WA10 1HT",
"WA9 3RR",
]:
return None

return super().address_record_to_dict(record)

0 comments on commit 8dc5529

Please sign in to comment.