Skip to content

Commit

Permalink
Import script for Norwich (2024-05-02) (closes #6567)
Browse files Browse the repository at this point in the history
  • Loading branch information
polling-bot-4000 authored and GeoWill committed Mar 18, 2024
1 parent c934cf5 commit effba56
Showing 1 changed file with 12 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,17 @@

class Command(BaseDemocracyCountsCsvImporter):
council_id = "NOW"
addresses_name = (
"2023-05-04/2023-04-21T13:20:24.756727/DC - Polling districts export.csv"
)
stations_name = (
"2023-05-04/2023-04-21T13:20:24.756727/DC - Polling stations export.csv"
)
elections = ["2023-05-04"]
addresses_name = "2024-05-02/2024-03-18T08:50:17.047358/Democracy Club - Polling Districts export.csv"
stations_name = "2024-05-02/2024-03-18T08:50:17.047358/Democracy Club - 2024 Polling Stations export 4.csv"
elections = ["2024-05-02"]

def station_record_to_dict(self, record):
# ST THOMAS PARISH HALL
# https://wheredoivote.co.uk/admin/bug_reports/bugreport/576/change/
if record.stationcode == "33NE2":
record = record._replace(xordinate="", yordinate="")
def address_record_to_dict(self, record):
uprn = record.uprn.strip().lstrip("0")

return super().station_record_to_dict(record)
if uprn in [
"10024023874", # LIVING ACCOMMODATION THE MARSH HARRIER IPSWICH ROAD, NORWICH
"200004349456", # 14A IPSWICH ROAD, NORWICH
]:
return None

return super().address_record_to_dict(record)

0 comments on commit effba56

Please sign in to comment.