Skip to content

Commit

Permalink
Import script for Rushmoor (2024-05-02) (closes #6594)
Browse files Browse the repository at this point in the history
  • Loading branch information
polling-bot-4000 committed Mar 14, 2024
1 parent b847e10 commit 423622a
Showing 1 changed file with 3 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,10 @@
class Command(BaseXpressDemocracyClubCsvImporter):
council_id = "RUH"
addresses_name = (
"2023-05-04/2023-03-15T16:53:47.237360/Democracy_Club__04May2023.tsv"
"2024-05-02/2024-03-14T10:25:53.338856/Democracy_Club__02May2024.tsv"
)
stations_name = (
"2023-05-04/2023-03-15T16:53:47.237360/Democracy_Club__04May2023.tsv"
"2024-05-02/2024-03-14T10:25:53.338856/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 [
"100062006907", # 1B WATERLOO ROAD, ALDERSHOT
"100062323687", # 1 WATERLOO ROAD, ALDERSHOT
"100062323733", # 1A WATERLOO ROAD, ALDERSHOT
"100062323188", # YELLOW RIVER, 50 GROSVENOR ROAD, ALDERSHOT
]:
return None

return super().address_record_to_dict(record)

0 comments on commit 423622a

Please sign in to comment.