Skip to content

Commit

Permalink
Import script for Newham (2024-07-04) (closes #7892)
Browse files Browse the repository at this point in the history
  • Loading branch information
polling-bot-4000 committed Jun 20, 2024
1 parent bdc507d commit a505a77
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-07-04/2024-06-10T08:52:12.277173/Democracy_Club__04July2024.tsv"
)
stations_name = (
"2024-07-04/2024-06-10T08:52:12.277173/Democracy_Club__04July2024.tsv"
)
addresses_name = "2024-07-04/2024-06-20T13:52:40.152721/ForestGateNorthandMaryland_Democracy_Club__04July2024.tsv"
stations_name = "2024-07-04/2024-06-20T13:52:40.152721/ForestGateNorthandMaryland_Democracy_Club__04July2024.tsv"
elections = ["2024-07-04"]
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 a505a77

Please sign in to comment.