Skip to content

Commit

Permalink
Import script for Bromsgrove (2024-05-02) (closes #6630)
Browse files Browse the repository at this point in the history
  • Loading branch information
polling-bot-4000 committed Mar 18, 2024
1 parent effba56 commit 28155a2
Showing 1 changed file with 4 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,10 @@
class Command(BaseXpressDemocracyClubCsvImporter):
council_id = "BRM"
addresses_name = (
"2023-05-04/2023-04-05T11:21:23.640951/Bromsgrove Democracy_Club__04May2023.CSV"
"2024-05-02/2024-03-18T11:26:35.230552/Bromsgrove Democracy_Club__02May2024.tsv"
)
stations_name = (
"2023-05-04/2023-04-05T11:21:23.640951/Bromsgrove Democracy_Club__04May2023.CSV"
"2024-05-02/2024-03-18T11:26:35.230552/Bromsgrove Democracy_Club__02May2024.tsv"
)
elections = ["2023-05-04"]

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

if uprn in [
"10090741909", # THE OLD FORGE, BROMSGROVE ROAD, CLENT, STOURBRIDGE
]:
return None

if record.addressline6 in [
# split
"B61 0NX",
"B61 7AY",
"B45 8HY",
"B60 3AZ",
]:
return None

return super().address_record_to_dict(record)
elections = ["2024-05-02"]
csv_delimiter = "\t"

0 comments on commit 28155a2

Please sign in to comment.