Skip to content

Commit

Permalink
Import script for Runnymede (2024-05-02) (closes #6233)
Browse files Browse the repository at this point in the history
  • Loading branch information
polling-bot-4000 committed Feb 22, 2024
1 parent 37396f3 commit 461b699
Showing 1 changed file with 3 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,10 @@
class Command(BaseXpressDemocracyClubCsvImporter):
council_id = "RUN"
addresses_name = (
"2023-05-04/2023-03-02T14:04:03.113510/Democracy_Club__04May2023.tsv"
"2024-05-02/2024-02-22T10:50:15.362737/Democracy_Club__02May2024.tsv"
)
stations_name = (
"2023-05-04/2023-03-02T14:04:03.113510/Democracy_Club__04May2023.tsv"
"2024-05-02/2024-02-22T10:50:15.362737/Democracy_Club__02May2024.tsv"
)
elections = ["2023-05-04"]
elections = ["2024-05-02"]
csv_delimiter = "\t"

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

if uprn in [
"10091662635", # 3 CLIFTON GRANGE, BLACKPOOL ROAD, CLIFTON, PRESTON
"10092963299", # FLAT AT 79 STATION ROAD, ADDLESTONE
"10095815752", # FLAT 50, AVIATOR HOUSE, 227 STATION ROAD, ADDLESTONE
"10095815848", # FLAT 136, AVIATOR HOUSE, 227 STATION ROAD, ADDLESTONE
"10095815743", # FLAT 32, AVIATOR HOUSE, 227 STATION ROAD, ADDLESTONE
"200004029979", # LODGE, ST. GEORGES COLLEGE, WEYBRIDGE ROAD, ADDLESTONE
"100062604551", # ST. GEORGES COLLEGE, WEYBRIDGE ROAD, ADDLESTONE
]:
return None
if record.addressline6 in [
# splits
"KT16 8QD",
"KT16 8AG",
"KT15 2US",
"KT15 2DB",
"KT16 0AB", # 10 WATERY LANE, CHERTSEY
]:
return None

return super().address_record_to_dict(record)

0 comments on commit 461b699

Please sign in to comment.