Skip to content

Commit

Permalink
Import script for High Peak (2024-05-02) (closes #6750)
Browse files Browse the repository at this point in the history
  • Loading branch information
polling-bot-4000 committed Mar 21, 2024
1 parent bf35a85 commit 5a0a8c7
Showing 1 changed file with 3 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,10 @@
class Command(BaseXpressDemocracyClubCsvImporter):
council_id = "HIG"
addresses_name = (
"2023-05-04/2023-04-12T16:06:53.275227/Democracy_Club__04May2023.tsv"
"2024-05-02/2024-03-21T13:43:41.849663/Democracy_Club__02May2024 (21).tsv"
)
stations_name = (
"2023-05-04/2023-04-12T16:06:53.275227/Democracy_Club__04May2023.tsv"
"2024-05-02/2024-03-21T13:43:41.849663/Democracy_Club__02May2024 (21).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 [
"10010727932", # HOCKERLEY HALL FARM, HOCKERLEY LANE, WHALEY BRIDGE, HIGH PEAK
"10010747214", # THE BUNGALOW, HARPUR HILL BUSINESS PARK, BUXTON
"10010715355", # RED GAP FARM, GREEN FAIRFIELD, BUXTON
"10010720655", # BLACK HILLGATE FARM, KETTLESHULME, HIGH PEAK
]:
return None

if record.addressline6 in [
# splits
"S33 0AB",
"SK23 6BR",
"SK22 3DU", # LARKHILL TERRACE, NEW MILLS, HIGH PEAK
]:
return None

return super().address_record_to_dict(record)

0 comments on commit 5a0a8c7

Please sign in to comment.