Skip to content

Commit

Permalink
Import script for Nottingham (2024-05-02) (closes #6844)
Browse files Browse the repository at this point in the history
  • Loading branch information
polling-bot-4000 committed Apr 2, 2024
1 parent 36f8565 commit de4f7a6
Showing 1 changed file with 3 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,9 @@
class Command(BaseXpressDemocracyClubCsvImporter):
council_id = "NGM"
addresses_name = (
"2023-05-04/2023-04-05T16:34:11.754241/Democracy_Club__04May2023.tsv"
"2024-05-02/2024-04-02T15:54:17.244234/Democracy_Club__02May2024.CSV"
)
stations_name = (
"2023-05-04/2023-04-05T16:34:11.754241/Democracy_Club__04May2023.tsv"
"2024-05-02/2024-04-02T15:54:17.244234/Democracy_Club__02May2024.CSV"
)
elections = ["2023-05-04"]
csv_delimiter = "\t"

def address_record_to_dict(self, record):
if record.addressline6 in [
# split
"NG7 1BZ",
]:
return None

return super().address_record_to_dict(record)

def station_record_to_dict(self, record):
# Council Station Change https://trello.com/c/Z7H14XBS
# Mariner Court Common Room -> Crabtree Farm Community Centre
if record.polling_place_id == "6853":
record = record._replace(
polling_place_name="Crabtree Farm Community Centre",
polling_place_address_1="Steadfold Close",
polling_place_address_2="",
polling_place_address_3="",
polling_place_address_4="Nottingham",
polling_place_postcode="NG6 8AX",
)
return super().station_record_to_dict(record)
elections = ["2024-05-02"]

0 comments on commit de4f7a6

Please sign in to comment.