Skip to content

Commit

Permalink
Import script for Newham (2024-05-02) (closes #6963)
Browse files Browse the repository at this point in the history
  • Loading branch information
polling-bot-4000 committed Apr 19, 2024
1 parent a948aa4 commit 3c3a41e
Showing 1 changed file with 2 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,38 +3,7 @@

class Command(BaseXpressDemocracyClubCsvImporter):
council_id = "NWM"
addresses_name = (
"2024-05-02/2024-02-13T12:47:31.824317/Democracy_Club__02May2024.tsv"
)
stations_name = (
"2024-05-02/2024-02-13T12:47:31.824317/Democracy_Club__02May2024.tsv"
)
addresses_name = "2024-05-02/2024-04-19T10:31:29.542641/Democracy_Club__02May2024_final190424.tsv"
stations_name = "2024-05-02/2024-04-19T10:31:29.542641/Democracy_Club__02May2024_final190424.tsv"
elections = ["2024-05-02"]
csv_delimiter = "\t"

def address_record_to_dict(self, record):
uprn = record.property_urn.strip().lstrip("0")

if uprn in [
"10023995039", # FLAT AT THE DOCKLANDS EQUESTRIAN CENTRE 2 CLAPS GATE LANE, BECKTON, LONDON
"10094880629", # FLAT 1 200 THE GROVE, STRATFORD, LONDON
"10009003474", # FLAT 2 200 THE GROVE, STRATFORD, LONDON
"10009003475", # FLAT 3 200 THE GROVE, STRATFORD, LONDON
"46001049", # 96 ALDERSBROOK ROAD, LONDON
"10012838007", # FLAT ABOVE 24 STEPHENSON STREET, CANNING TOWN, LONDON
"10012838012", # FLAT, 162 BIDDER STREET, LONDON
"10093472922", # ALAIN CODY DOCK 11C SOUTH CRESCENT, CANNING TOWN, LONDON
"10093472923", # MADORCHA CODY DOCK 11C SOUTH CRESCENT, CANNING TOWN, LONDON
]:
return None

if record.addressline6 in [
# split
"E13 0DZ",
# looks wrong
"E15 1BQ",
"E15 1BG",
]:
return None

return super().address_record_to_dict(record)

0 comments on commit 3c3a41e

Please sign in to comment.