Skip to content

Commit

Permalink
Northumberland - fix for council election-date
Browse files Browse the repository at this point in the history
  • Loading branch information
blacktyger authored and GeoWill committed Mar 15, 2024
1 parent 76a0eeb commit d0cc883
Showing 1 changed file with 107 additions and 104 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,109 +38,112 @@ def address_record_to_dict(self, record):
return super().address_record_to_dict(record)

def station_record_to_dict(self, record):
# 'The Lindisfarne Centre, Lindisfarne Road, Alnwick, NE66 1AX' (id: 8235)
# postcode provided by the council, ignore the warning

# 'Bamburgh Pavilion, Bamburgh, NE69 7BP' (id: 8144)
# postcode provided by the council, ignore the warning
if record.polling_place_id == "8144":
record = record._replace(polling_place_postcode="NE69 7DB")

# 'St Cuthberts Parish Centre, Walkergate, Berwick upon Tweed, TD15 1DS' (id: 8176)
# postcode provided by the council, ignore the warning
if record.polling_place_id == "8176":
record = record._replace(polling_place_postcode="TD15 2SB")

# 'Netherwitton Village Hall, Netherwitton, Morpeth, NE61 4NW' (id: 8204)
# postcode provided by the council, ignore the warning

# 'Felton Village Hall, Felton, Morpeth, NE65 9PT' (id: 8076)
if record.polling_place_id == "8076":
record = record._replace(polling_place_postcode="NE65 9NH")

# 'Ellingham Village Hall, Ellingham, NE67 5HA' (id: 8236)
# postcode provided by the council, ignore the warning

# 'Boulmer Memorial Hall, Boulmer, Alnwick, NE66 0RA' (id: 8248)
if record.polling_place_id == "8248":
record = record._replace(polling_place_postcode="NE66 3BP")

# 'Etal Village Hall, Etal, Berwick upon Tweed, TD12 4TN' (id: 8306)
if record.polling_place_id == "8306":
record = record._replace(polling_place_postcode="TD12 4TL")

# 'Holy Island Crossman Village Hall, Holy Island, Berwick upon Tweed, TD15 2ST' (id: 8314)
# postcode provided by the council, ignore the warning
if record.polling_place_id == "8314":
record = record._replace(polling_place_postcode="TD15 2RX")

# 'Ingram Village Hall, Ingram, Powburn, Alnwick, NE66 4LU' (id: 8117)
# postcode provided by the council, ignore the warning

# 'Nelson Village Welfare Community Centre, 55 Nelson Avenue, Nelson Village, Cramlington, NE23 1HG' (id: 8362)
# postcode provided by the council, ignore the warning

# 'Seaton Delaval United Reformed/Methodist Church Hall, Elsdon Avenue, Seaton Delaval, NE25 0BW' (id: 8386)
# postcode provided by the council, ignore the warning

# 'Blyth Briardale House Youth and Community Project, Briardale Road, Cowpen Estate, Blyth, NE24 5AN' (id: 8399)
# postcode provided by the council, ignore the warning

# 'Blyth Saint Benedicts Church, Devonworth Place, Blyth, NE24 5AD' (id: 8397)
# postcode provided by the council, ignore the warning
if record.polling_place_id == "8397":
record = record._replace(polling_place_postcode="NE24 5AU")

# 'Bellingham Town Hall, Front Street, Bellingham, Hexham, NE48 2AA' (id: 8509)
# postcode provided by the council, ignore the warning
if record.polling_place_id == "8509":
record = record._replace(polling_place_postcode="NE48 2AH")

# 'Byrness Village Hall, Byrness, NE19 1TT' (id: 8699)
# postcode provided by the council, ignore the warning

# 'Horsley Village Hall Trust, Horsley, NE15 0NS' (id: 8457)
if record.polling_place_id == "8457":
record = record._replace(polling_place_postcode="NE15 0NT")

# 'Featherstone Village Hall, Featherstone, NE49 0JG' (id: 8488)
if record.polling_place_id == "8488":
record = record._replace(polling_place_postcode="NE49 0JE")

# 'Hexham West End Methodist Church Hall, Shaftoe Leazes, Hexham, NE46 3DF' (id: 8547)
# postcode provided by the council, ignore the warning

# 'Wall Village Hall, Wall, Hexham, NE46 4DX' (id: 8570)
if record.polling_place_id == "8570":
record = record._replace(polling_place_postcode="NE46 4DU")

# 'Matfen Village Hall, Matfen, NE20 0RP' (id: 8609)
# postcode provided by the council, ignore the warning

# 'Stamfordham Village Hall, Stamfordham, NE18 0NA' (id: 8613)
# postcode provided by the council, ignore the warning

# 'Catton Village Hall, Catton, NE47 9QH' (id: 8648)
# postcode provided by the council, ignore the warning

# 'Blanchland Village Hall, Derwent View, Blanchland, Consett, DH8 9UA' (id: 8655)
# postcode provided by the council, ignore the warning

# 'Slaley Commemoration Hall, Main Street, Slaley, Hexham, NE47 0AA' (id: 8659)
if record.polling_place_id == "8659":
record = record._replace(polling_place_postcode="NE47 0BQ")

# 'Scouts Hut, Olympia Avenue, Guide Post, Choppington, NE62 5DF' (id: 8705)
# postcode provided by the council, ignore the warning

# 'Hepscott Parish Hall, Hepscott, Morpeth, NE61 6LT' (id: 8722)
if record.polling_place_id == "8722":
record = record._replace(polling_place_postcode="NE61 6LN")

# 'Mitford Community Centre, Fontside, Mitford, Morpeth, NE61 3PS' (id: 8724)
# postcode provided by the council, ignore the warning

# 'Cambois Camera Club, Ridley Terrace, Cambois, NE24 1QS' (id: 8783)
# postcode provided by the council, ignore the warning
# Council requested to drop all the changes and use data provided by them
# Ignore all the warnings, below corrections commented out for future references

# # 'The Lindisfarne Centre, Lindisfarne Road, Alnwick, NE66 1AX' (id: 8235)
# # postcode provided by the council, ignore the warning
#
# # 'Bamburgh Pavilion, Bamburgh, NE69 7BP' (id: 8144)
# # postcode provided by the council, ignore the warning
# if record.polling_place_id == "8144":
# record = record._replace(polling_place_postcode="NE69 7DB")
#
# # 'St Cuthberts Parish Centre, Walkergate, Berwick upon Tweed, TD15 1DS' (id: 8176)
# # postcode provided by the council, ignore the warning
# if record.polling_place_id == "8176":
# record = record._replace(polling_place_postcode="TD15 2SB")
#
# # 'Netherwitton Village Hall, Netherwitton, Morpeth, NE61 4NW' (id: 8204)
# # postcode provided by the council, ignore the warning
#
# # 'Felton Village Hall, Felton, Morpeth, NE65 9PT' (id: 8076)
# if record.polling_place_id == "8076":
# record = record._replace(polling_place_postcode="NE65 9NH")
#
# # 'Ellingham Village Hall, Ellingham, NE67 5HA' (id: 8236)
# # postcode provided by the council, ignore the warning
#
# # 'Boulmer Memorial Hall, Boulmer, Alnwick, NE66 0RA' (id: 8248)
# if record.polling_place_id == "8248":
# record = record._replace(polling_place_postcode="NE66 3BP")
#
# # 'Etal Village Hall, Etal, Berwick upon Tweed, TD12 4TN' (id: 8306)
# if record.polling_place_id == "8306":
# record = record._replace(polling_place_postcode="TD12 4TL")
#
# # 'Holy Island Crossman Village Hall, Holy Island, Berwick upon Tweed, TD15 2ST' (id: 8314)
# # postcode provided by the council, ignore the warning
# if record.polling_place_id == "8314":
# record = record._replace(polling_place_postcode="TD15 2RX")
#
# # 'Ingram Village Hall, Ingram, Powburn, Alnwick, NE66 4LU' (id: 8117)
# # postcode provided by the council, ignore the warning
#
# # 'Nelson Village Welfare Community Centre, 55 Nelson Avenue, Nelson Village, Cramlington, NE23 1HG' (id: 8362)
# # postcode provided by the council, ignore the warning
#
# # 'Seaton Delaval United Reformed/Methodist Church Hall, Elsdon Avenue, Seaton Delaval, NE25 0BW' (id: 8386)
# # postcode provided by the council, ignore the warning
#
# # 'Blyth Briardale House Youth and Community Project, Briardale Road, Cowpen Estate, Blyth, NE24 5AN' (id: 8399)
# # postcode provided by the council, ignore the warning
#
# # 'Blyth Saint Benedicts Church, Devonworth Place, Blyth, NE24 5AD' (id: 8397)
# # postcode provided by the council, ignore the warning
# if record.polling_place_id == "8397":
# record = record._replace(polling_place_postcode="NE24 5AU")
#
# # 'Bellingham Town Hall, Front Street, Bellingham, Hexham, NE48 2AA' (id: 8509)
# # postcode provided by the council, ignore the warning
# if record.polling_place_id == "8509":
# record = record._replace(polling_place_postcode="NE48 2AH")
#
# # 'Byrness Village Hall, Byrness, NE19 1TT' (id: 8699)
# # postcode provided by the council, ignore the warning
#
# # 'Horsley Village Hall Trust, Horsley, NE15 0NS' (id: 8457)
# if record.polling_place_id == "8457":
# record = record._replace(polling_place_postcode="NE15 0NT")
#
# # 'Featherstone Village Hall, Featherstone, NE49 0JG' (id: 8488)
# if record.polling_place_id == "8488":
# record = record._replace(polling_place_postcode="NE49 0JE")
#
# # 'Hexham West End Methodist Church Hall, Shaftoe Leazes, Hexham, NE46 3DF' (id: 8547)
# # postcode provided by the council, ignore the warning
#
# # 'Wall Village Hall, Wall, Hexham, NE46 4DX' (id: 8570)
# if record.polling_place_id == "8570":
# record = record._replace(polling_place_postcode="NE46 4DU")
#
# # 'Matfen Village Hall, Matfen, NE20 0RP' (id: 8609)
# # postcode provided by the council, ignore the warning
#
# # 'Stamfordham Village Hall, Stamfordham, NE18 0NA' (id: 8613)
# # postcode provided by the council, ignore the warning
#
# # 'Catton Village Hall, Catton, NE47 9QH' (id: 8648)
# # postcode provided by the council, ignore the warning
#
# # 'Blanchland Village Hall, Derwent View, Blanchland, Consett, DH8 9UA' (id: 8655)
# # postcode provided by the council, ignore the warning
#
# # 'Slaley Commemoration Hall, Main Street, Slaley, Hexham, NE47 0AA' (id: 8659)
# if record.polling_place_id == "8659":
# record = record._replace(polling_place_postcode="NE47 0BQ")
#
# # 'Scouts Hut, Olympia Avenue, Guide Post, Choppington, NE62 5DF' (id: 8705)
# # postcode provided by the council, ignore the warning
#
# # 'Hepscott Parish Hall, Hepscott, Morpeth, NE61 6LT' (id: 8722)
# if record.polling_place_id == "8722":
# record = record._replace(polling_place_postcode="NE61 6LN")
#
# # 'Mitford Community Centre, Fontside, Mitford, Morpeth, NE61 3PS' (id: 8724)
# # postcode provided by the council, ignore the warning
#
# # 'Cambois Camera Club, Ridley Terrace, Cambois, NE24 1QS' (id: 8783)
# # postcode provided by the council, ignore the warning

return super().station_record_to_dict(record)

0 comments on commit d0cc883

Please sign in to comment.