Skip to content

Commit

Permalink
Import script for St Helens (2024-12-12) (closes #8159)
Browse files Browse the repository at this point in the history
  • Loading branch information
polling-bot-4000 authored and awdem committed Nov 19, 2024
1 parent 0faa33f commit 4326d90
Showing 1 changed file with 19 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,29 @@
class Command(BaseXpressDemocracyClubCsvImporter):
council_id = "SHN"
addresses_name = (
"2024-07-04/2024-05-27T21:11:46.157637/Democracy_Club__04July2024.tsv"
"2024-12-12/2024-11-19T11:02:39.999329/Democracy_Club__12December2024.tsv"
)
stations_name = (
"2024-07-04/2024-05-27T21:11:46.157637/Democracy_Club__04July2024.tsv"
"2024-12-12/2024-11-19T11:02:39.999329/Democracy_Club__12December2024.tsv"
)
elections = ["2024-07-04"]
elections = ["2024-12-12"]
csv_delimiter = "\t"

def address_record_to_dict(self, record):
uprn = record.property_urn.strip().lstrip("0")
# Maintaining GE exclusions for future reference

if uprn in [
"39097215", # 8 PARK AVENUE NORTH, NEWTON-LE-WILLOWS
"39053135", # ROOM 5, COHAB HOUSE, 19 SHAW STREET, ST. HELENS
]:
return None
if record.addressline6 in [
# split
"WA10 1HT",
"WA9 3RR",
]:
return None
# def address_record_to_dict(self, record):
# uprn = record.property_urn.strip().lstrip("0")

return super().address_record_to_dict(record)
# if uprn in [
# "39097215", # 8 PARK AVENUE NORTH, NEWTON-LE-WILLOWS
# "39053135", # ROOM 5, COHAB HOUSE, 19 SHAW STREET, ST. HELENS
# ]:
# return None
# if record.addressline6 in [
# # split
# "WA10 1HT",
# "WA9 3RR",
# ]:
# return None

# return super().address_record_to_dict(record)

0 comments on commit 4326d90

Please sign in to comment.