Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import script for Newham (2024-07-04) (closes #7892) #7893

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)