Skip to content

Commit

Permalink
fix for gateshead-2024-05-02
Browse files Browse the repository at this point in the history
  • Loading branch information
blacktyger authored and GeoWill committed Mar 22, 2024
1 parent 5c9eca1 commit 994a738
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,21 @@ def address_record_to_dict(self, record):
return None

return super().address_record_to_dict(record)

def station_record_to_dict(self, record):
# Change requested by the council
# Old station: The Coachman, Burnthouse Lane, Whickham, Newcastle Upon Tyne, NE16 5AW (id: 10253)
# Replaced by: Fellside Methodist Church, Ancaster Road, Whickham, Newcastle Upon Tyne, NE16 5BJ
if record.polling_place_id == "10253":
record = record._replace(
polling_place_name="Fellside Methodist Church",
polling_place_address_1="Ancaster Road",
polling_place_address_2="",
polling_place_address_3="Whickham",
polling_place_address_4="Newcastle Upon Tyne",
polling_place_postcode="NE16 5BJ",
polling_place_easting="",
polling_place_northing="",
)

return super().station_record_to_dict(record)

0 comments on commit 994a738

Please sign in to comment.