<reponame>smsmith97/UK-Polling-Stations
from data_importers.ems_importers import BaseHalaroseCsvImporter

ABERDEEN_EXCLUDE_STATIONS = (
    "1-bennachie-leisure-centre",
    "1-destiny-church-and-community-hall",
    "1-houldsworth-institute",
    "1-new-pitsligo-public-hall",
    "10-aberchirder-community-pavilion",
    "10-fleming-hall",
    "10-kemnay-village-hall",
    "10-stuartfield-village-hall",
    "11-aberchirder-community-pavilion",
    "11-kintore-public-hall",
    "11-mortlach-memorial-hall",
    "11-st-johns-church",
    "12-forglen-parish-church-hall",
    "12-kintore-public-hall",
    "12-mortlach-memorial-hall",
    "12-st-johns-church",
    "13-glenlivet-public-hall",
    "13-kintore-public-hall",
    "13-longhaven-hall",
    "13-macduff-town-hall",
    "14-hatton-public-hall",
    "14-kintore-public-hall",
    "14-macduff-town-hall",
    "14-richmond-memorial-hall",
    "15-buchan-street-hall",
    "15-cruden-bay-public-hall",
    "15-kinellar-community-hall",
    "15-newmill-public-hall",
    "16-cruden-bay-public-hall",
    "16-gardenstown-public-hall",
    "16-kinellar-community-hall",
    "16-old-ogilvie-school-hall",
    "168-maryculter-community-hall-by-old-mill-inn",
    "169-banchory-devenick-school",
    "17-aberdour-parish-hall",
    "17-cluny-church-hall",
    "17-longmore-halls",
    "17-st-ninians-parish-church",
    "170-the-jubilee-hall",
    "171-the-jubilee-hall",
    "172-portlethen-parish-church-hall",
    "173-portlethen-parish-church-hall",
    "174-portlethen-parish-church-hall",
    "175-bourtree-community-hall",
    "176-bourtree-community-hall",
    "177-bourtree-community-hall",
    "178-cookney-public-hall",
    "179-the-bettridge-centre",
    "18-fordyce-street-hall",
    "18-longmore-halls",
    "18-midmar-village-hall",
    "18-st-ninians-parish-church",
    "180-the-bettridge-centre",
    "181-the-bettridge-centre",
    "19-echt-parish-church",
    "19-longmore-halls",
    "19-sandhaven-and-pitullie-public-hall",
    "19-st-ninians-parish-church",
    "2-bennachie-leisure-centre",
    "2-fordyce-community-hall",
    "2-ritchie-hall",
    "2-the-grant-hall",
    "20-boyndlie-community-hall",
    "20-lhanbryde-community-centre",
    "20-milne-hall",
    "20-st-andrews-parish-church-hall",
    "21-ashdale-hall",
    "21-king-edward-hall",
    "21-lhanbryde-community-centre",
    "21-st-andrews-parish-church-hall",
    "22-ashdale-hall",
    "22-crudie-school",
    "22-monquhitter-church-hall",
    "22-urquhart-village-hall",
    "23-ashdale-hall",
    "23-easterfield-school",
    "23-garmouth-hall",
    "23-new-byth-church-hall",
    "24-ashdale-hall",
    "24-auchterless-community-hall",
    "24-spey-bay-hall",
    "24-westfield-school",
    "25-glebe-house",
    "25-portgordon-community-centre",
    "25-westdyke-leisure-centre",
    "25-westfield-school",
    "26-fogwatt-hall",
    "26-glebe-house",
    "26-westdyke-leisure-centre",
    "26-westfield-school",
    "27-mosstodloch-village-hall-speymouth-hall",
    "27-rothienorman-public-hall",
    "27-westdyke-leisure-centre",
    "27-westfield-school",
    "28-fochabers-public-institute",
    "28-jic-building",
    "28-methlick-scout-hall",
    "28-westdyke-leisure-centre",
    "29-cairney-school",
    "29-fochabers-public-institute",
    "29-jic-building",
    "29-methlick-scout-hall",
    "3-bennachie-leisure-centre",
    "3-chalmers-institute",
    "3-the-grant-hall",
    "3-whitehills-public-hall",
    "30-clochan-community-hall",
    "30-dalrymple-hall",
    "30-daviot-village-hall",
    "30-glass-village-hall",
    "31-british-legion-hall",
    "31-burghead-free-church-hall",
    "31-dalrymple-hall",
    "31-linden-centre",
    "32-british-legion-hall",
    "32-burghead-free-church-hall",
    "32-dalrymple-hall",
    "32-linden-centre",
    "33-british-legion-hall",
    "33-invercairn-community-hall",
    "33-linden-centre",
    "33-memorial-hall",
    "34-invercairn-community-hall",
    "34-linden-centre",
    "34-melvin-hall",
    "34-memorial-hall",
    "35-drumblade-school-nursery-building",
    "35-lossiemouth-football-social-club",
    "35-melvin-hall",
    "35-rathen-public-hall",
    "36-lossiemouth-football-social-club",
    "36-pitmedden-public-hall",
    "36-roads-community-cafe",
    "36-scott-hall",
    "37-crimond-community-centre",
    "37-gartly-community-hall",
    "37-lossiemouth-football-social-club",
    "37-pitmedden-public-hall",
    "38-fourteen",
    "38-st-fergus-village-hall",
    "38-town-hall",
    "38-udny-station-community-centre",
    "39-buchanhaven-school",
    "39-potterton-community-ed-centre",
    "39-rannes-public-hall",
    "39-town-hall",
    "4-banff-parish-church-hall",
    "4-boharm-village-hall",
    "4-new-deer-public-hall",
    "4-st-lawrence-hall",
    "40-buchanhaven-school",
    "40-lumsden-village-hall",
    "40-potterton-community-ed-centre",
    "40-town-hall",
    "41-balmedie-leisure-centre",
    "41-buchanhaven-school",
    "41-duffus-village-hall",
    "41-tullynessle-and-forbes-hall",
    "42-alves-hall",
    "42-balmedie-leisure-centre",
    "42-keig-kirk",
    "42-the-anna-ritchie-school",
    "43-arnage-school",
    "43-miltonduff-public-hall",
    "43-monymusk-village-hall",
    "43-stonehaven-community-education-centre",
    "43-the-anna-ritchie-school",
    "44-alford-ski-centre",
    "44-auchterellon-primary-school",
    "44-bishopmill-hall",
    "44-stonehaven-community-education-centre",
    "44-the-anna-ritchie-school",
    "45-alford-ski-centre",
    "45-auchterellon-primary-school",
    "45-bishopmill-hall",
    "45-stonehaven-community-education-centre",
    "45-the-anna-ritchie-school",
    "46-auchterellon-primary-school",
    "46-bishopmill-hall",
    "46-craigievar-hall",
    "46-stonehaven-community-education-centre",
    "46-territorial-army-centre",
    "47-meiklemill-primary-school",
    "47-seafield-school",
    "47-stonehaven-community-education-centre",
    "47-territorial-army-centre",
    "47-tough-primary-school",
    "48-clerkhill-school",
    "48-corgarff-public-hall",
    "48-meiklemill-primary-school",
    "48-scout-hq",
    "48-seafield-school",
    "49-clerkhill-school",
    "49-lonach-hall-committee-room",
    "49-meiklemill-primary-school",
    "49-scout-hq",
    "49-seafield-school",
    "5-banff-parish-church-hall",
    "5-margach-hall",
    "5-new-deer-public-hall",
    "5-premnay-village-hall",
    "50-collieston-community-education-centre",
    "50-dales-park-school",
    "50-st-bridgets-hall",
    "50-towie-public-hall",
    "50-williamson-hall",
    "51-braemar-village-hall",
    "51-dales-park-school",
    "51-st-bridgets-hall",
    "51-victoria-hall",
    "51-williamson-hall",
    "52-crathie-church-hall",
    "52-dales-park-school",
    "52-drumlithie-public-hall",
    "52-elgin-district-indoor-bowling-club",
    "52-victoria-hall",
    "53-auchenblae-public-hall",
    "53-boddam-public-hall",
    "53-moray-conference-centre-mansefield-hotel",
    "53-victoria-hall",
    "54-fordoun-memorial-hall",
    "54-mcboyle-hall",
    "54-moray-conference-centre-mansefield-hotel",
    "54-victoria-hall",
    "55-arbuthnott-parish-hall",
    "55-cullen-bowling-and-tennis-club",
    "55-logie-coldstone-village-hall",
    "55-moray-conference-centre-mansefield-hotel",
    "55-newburgh-public-hall",
    "56-cullen-bowling-and-tennis-club",
    "56-greenwards-school",
    "56-kinneff-public-hall",
    "56-macrobert-memorial-hall",
    "56-newburgh-public-hall",
    "57-deskford-jubilee-hall",
    "57-fettercairn-church-hall",
    "57-garioch-indoor-bowling-club",
    "57-greenwards-school",
    "57-victory-hall",
    "58-garioch-indoor-bowling-club",
    "58-greenwards-school",
    "58-king-memorial-hall-off-a95",
    "58-luthermuir-public-hall",
    "58-victory-hall",
    "59-garioch-indoor-bowling-club",
    "59-lumphanan-village-hall",
    "59-new-elgin-ashgrove-hall",
    "59-rothiemay-hall",
    "59-the-venue",
    "6-archiestown-hall",
    "6-banff-parish-church-hall",
    "6-maud-village-hall",
    "6-victoria-jubilee-hall",
    "60-function-hall",
    "60-garioch-indoor-bowling-club",
    "60-learney-hall",
    "60-new-elgin-ashgrove-hall",
    "60-the-venue",
    "61-function-hall",
    "61-inverbervie-burgh-hall",
    "61-inverurie-town-hall",
    "61-learney-hall",
    "61-new-elgin-ashgrove-hall",
    "62-buckie-methodist-church-hall",
    "62-inverbervie-burgh-hall",
    "62-inverurie-town-hall",
    "62-kincardine-oneil-village-hall",
    "62-moray-sports-centre",
    "63-banchory-town-hall",
    "63-gourdon-public-hall",
    "63-inverurie-town-hall",
    "63-moray-sports-centre",
    "63-north-church-hall",
    "64-banchory-town-hall",
    "64-inverurie-town-hall",
    "64-james-milne-institute",
    "64-marykirk-public-hall",
    "64-royal-british-legion-hall",
    "65-banchory-town-hall",
    "65-dyke-district-hall",
    "65-keithhall-village-hall",
    "65-royal-british-legion-hall",
    "65-st-cyrus-public-hall",
    "66-banchory-ternan-east-church-hall",
    "66-johnshaven-village-hall",
    "66-kinloss-church-of-scotland-hall",
    "66-portessie-methodist-church-hall",
    "66-st-andrews-church-hall",
    "67-banchory-ternan-east-church-hall",
    "67-kinloss-church-of-scotland-hall",
    "67-st-andrews-church-hall",
    "67-town-hall",
    "68-banchory-ternan-east-church-hall",
    "68-forres-tennis-clubhouse",
    "68-port-elphinstone-community-house-1-pinewood-house",
    "69-crathes-public-hall",
    "69-fintray-public-hall",
    "69-forres-house-community-centre",
    "7-craigellachie-village-hall",
    "7-king-george-v-memorial-hall",
    "7-mintlaw-public-hall",
    "7-wri-hall-hilton",
    "70-axis-centre",
    "70-ballogie-nursery-school",
    "70-forres-house-community-centre",
    "71-axis-centre",
    "71-banchory-guide-hall",
    "71-forres-town-hall",
    "72-axis-centre",
    "72-finzean-public-hall",
    "72-forres-town-hall",
    "73-forres-town-hall",
    "73-strachan-village-hall",
    "74-drumoak-church-hall",
    "74-pilmuir-school",
    "75-kirkton-hall",
    "75-pilmuir-school",
    "76-pilmuir-school",
    "77-pilmuir-school",
    "78-rafford-hall",
    "79-edinkillie-hall",
    "8-alvah-parish-hall",
    "8-drummuir-hall",
    "8-kemnay-village-hall",
    "8-mintlaw-public-hall",
    "9-fleming-hall",
    "9-hay-memorial-hall",
    "9-kemnay-village-hall",
    "9-stuartfield-village-hall",
)


class Command(BaseHalaroseCsvImporter):
    council_id = "ABE"
    addresses_name = (
        "2021-04-06T10:26:08.515364/Grampian polling_station_export-2021-04-05.csv"
    )

    stations_name = (
        "2021-04-06T10:26:08.515364/Grampian polling_station_export-2021-04-05.csv"
    )
    elections = ["2021-05-06"]

    def station_record_to_dict(self, record):
        station_hash = self.get_station_hash(record)
        if station_hash in ABERDEEN_EXCLUDE_STATIONS:
            return None
        if record.pollingstationname == "ST MARY'S EPISCOPAL CHURCH":
            record = record._replace(pollingstationpostcode="AB10 1UN")
        return super().station_record_to_dict(record)

    def address_record_to_dict(self, record):
        if record.housepostcode in ["AB12 5UQ"]:
            return None
        station_hash = self.get_station_hash(record)
        if station_hash in ABERDEEN_EXCLUDE_STATIONS:
            return None

        return super().address_record_to_dict(record)

from data_importers.ems_importers import BaseHalaroseCsvImporter

ABERDEEN_EXCLUDE_STATIONS = (
    "1-bennachie-leisure-centre",
    "1-destiny-church-and-community-hall",
    "1-houldsworth-institute",
    "1-new-pitsligo-public-hall",
    "10-aberchirder-community-pavilion",
    "10-fleming-hall",
    "10-kemnay-village-hall",
    "10-stuartfield-village-hall",
    "11-aberchirder-community-pavilion",
    "11-kintore-public-hall",
    "11-mortlach-memorial-hall",
    "11-st-johns-church",
    "12-forglen-parish-church-hall",
    "12-kintore-public-hall",
    "12-mortlach-memorial-hall",
    "12-st-johns-church",
    "13-glenlivet-public-hall",
    "13-kintore-public-hall",
    "13-longhaven-hall",
    "13-macduff-town-hall",
    "14-hatton-public-hall",
    "14-kintore-public-hall",
    "14-macduff-town-hall",
    "14-richmond-memorial-hall",
    "15-buchan-street-hall",
    "15-cruden-bay-public-hall",
    "15-kinellar-community-hall",
    "15-newmill-public-hall",
    "16-cruden-bay-public-hall",
    "16-gardenstown-public-hall",
    "16-kinellar-community-hall",
    "16-old-ogilvie-school-hall",
    "168-maryculter-community-hall-by-old-mill-inn",
    "169-banchory-devenick-school",
    "17-aberdour-parish-hall",
    "17-cluny-church-hall",
    "17-longmore-halls",
    "17-st-ninians-parish-church",
    "170-the-jubilee-hall",
    "171-the-jubilee-hall",
    "172-portlethen-parish-church-hall",
    "173-portlethen-parish-church-hall",
    "174-portlethen-parish-church-hall",
    "175-bourtree-community-hall",
    "176-bourtree-community-hall",
    "177-bourtree-community-hall",
    "178-cookney-public-hall",
    "179-the-bettridge-centre",
    "18-fordyce-street-hall",
    "18-longmore-halls",
    "18-midmar-village-hall",
    "18-st-ninians-parish-church",
    "180-the-bettridge-centre",
    "181-the-bettridge-centre",
    "19-echt-parish-church",
    "19-longmore-halls",
    "19-sandhaven-and-pitullie-public-hall",
    "19-st-ninians-parish-church",
    "2-bennachie-leisure-centre",
    "2-fordyce-community-hall",
    "2-ritchie-hall",
    "2-the-grant-hall",
    "20-boyndlie-community-hall",
    "20-lhanbryde-community-centre",
    "20-milne-hall",
    "20-st-andrews-parish-church-hall",
    "21-ashdale-hall",
    "21-king-edward-hall",
    "21-lhanbryde-community-centre",
    "21-st-andrews-parish-church-hall",
    "22-ashdale-hall",
    "22-crudie-school",
    "22-monquhitter-church-hall",
    "22-urquhart-village-hall",
    "23-ashdale-hall",
    "23-easterfield-school",
    "23-garmouth-hall",
    "23-new-byth-church-hall",
    "24-ashdale-hall",
    "24-auchterless-community-hall",
    "24-spey-bay-hall",
    "24-westfield-school",
    "25-glebe-house",
    "25-portgordon-community-centre",
    "25-westdyke-leisure-centre",
    "25-westfield-school",
    "26-fogwatt-hall",
    "26-glebe-house",
    "26-westdyke-leisure-centre",
    "26-westfield-school",
    "27-mosstodloch-village-hall-speymouth-hall",
    "27-rothienorman-public-hall",
    "27-westdyke-leisure-centre",
    "27-westfield-school",
    "28-fochabers-public-institute",
    "28-jic-building",
    "28-methlick-scout-hall",
    "28-westdyke-leisure-centre",
    "29-cairney-school",
    "29-fochabers-public-institute",
    "29-jic-building",
    "29-methlick-scout-hall",
    "3-bennachie-leisure-centre",
    "3-chalmers-institute",
    "3-the-grant-hall",
    "3-whitehills-public-hall",
    "30-clochan-community-hall",
    "30-dalrymple-hall",
    "30-daviot-village-hall",
    "30-glass-village-hall",
    "31-british-legion-hall",
    "31-burghead-free-church-hall",
    "31-dalrymple-hall",
    "31-linden-centre",
    "32-british-legion-hall",
    "32-burghead-free-church-hall",
    "32-dalrymple-hall",
    "32-linden-centre",
    "33-british-legion-hall",
    "33-invercairn-community-hall",
    "33-linden-centre",
    "33-memorial-hall",
    "34-invercairn-community-hall",
    "34-linden-centre",
    "34-melvin-hall",
    "34-memorial-hall",
    "35-drumblade-school-nursery-building",
    "35-lossiemouth-football-social-club",
    "35-melvin-hall",
    "35-rathen-public-hall",
    "36-lossiemouth-football-social-club",
    "36-pitmedden-public-hall",
    "36-roads-community-cafe",
    "36-scott-hall",
    "37-crimond-community-centre",
    "37-gartly-community-hall",
    "37-lossiemouth-football-social-club",
    "37-pitmedden-public-hall",
    "38-fourteen",
    "38-st-fergus-village-hall",
    "38-town-hall",
    "38-udny-station-community-centre",
    "39-buchanhaven-school",
    "39-potterton-community-ed-centre",
    "39-rannes-public-hall",
    "39-town-hall",
    "4-banff-parish-church-hall",
    "4-boharm-village-hall",
    "4-new-deer-public-hall",
    "4-st-lawrence-hall",
    "40-buchanhaven-school",
    "40-lumsden-village-hall",
    "40-potterton-community-ed-centre",
    "40-town-hall",
    "41-balmedie-leisure-centre",
    "41-buchanhaven-school",
    "41-duffus-village-hall",
    "41-tullynessle-and-forbes-hall",
    "42-alves-hall",
    "42-balmedie-leisure-centre",
    "42-keig-kirk",
    "42-the-anna-ritchie-school",
    "43-arnage-school",
    "43-miltonduff-public-hall",
    "43-monymusk-village-hall",
    "43-stonehaven-community-education-centre",
    "43-the-anna-ritchie-school",
    "44-alford-ski-centre",
    "44-auchterellon-primary-school",
    "44-bishopmill-hall",
    "44-stonehaven-community-education-centre",
    "44-the-anna-ritchie-school",
    "45-alford-ski-centre",
    "45-auchterellon-primary-school",
    "45-bishopmill-hall",
    "45-stonehaven-community-education-centre",
    "45-the-anna-ritchie-school",
    "46-auchterellon-primary-school",
    "46-bishopmill-hall",
    "46-craigievar-hall",
    "46-stonehaven-community-education-centre",
    "46-territorial-army-centre",
    "47-meiklemill-primary-school",
    "47-seafield-school",
    "47-stonehaven-community-education-centre",
    "47-territorial-army-centre",
    "47-tough-primary-school",
    "48-clerkhill-school",
    "48-corgarff-public-hall",
    "48-meiklemill-primary-school",
    "48-scout-hq",
    "48-seafield-school",
    "49-clerkhill-school",
    "49-lonach-hall-committee-room",
    "49-meiklemill-primary-school",
    "49-scout-hq",
    "49-seafield-school",
    "5-banff-parish-church-hall",
    "5-margach-hall",
    "5-new-deer-public-hall",
    "5-premnay-village-hall",
    "50-collieston-community-education-centre",
    "50-dales-park-school",
    "50-st-bridgets-hall",
    "50-towie-public-hall",
    "50-williamson-hall",
    "51-braemar-village-hall",
    "51-dales-park-school",
    "51-st-bridgets-hall",
    "51-victoria-hall",
    "51-williamson-hall",
    "52-crathie-church-hall",
    "52-dales-park-school",
    "52-drumlithie-public-hall",
    "52-elgin-district-indoor-bowling-club",
    "52-victoria-hall",
    "53-auchenblae-public-hall",
    "53-boddam-public-hall",
    "53-moray-conference-centre-mansefield-hotel",
    "53-victoria-hall",
    "54-fordoun-memorial-hall",
    "54-mcboyle-hall",
    "54-moray-conference-centre-mansefield-hotel",
    "54-victoria-hall",
    "55-arbuthnott-parish-hall",
    "55-cullen-bowling-and-tennis-club",
    "55-logie-coldstone-village-hall",
    "55-moray-conference-centre-mansefield-hotel",
    "55-newburgh-public-hall",
    "56-cullen-bowling-and-tennis-club",
    "56-greenwards-school",
    "56-kinneff-public-hall",
    "56-macrobert-memorial-hall",
    "56-newburgh-public-hall",
    "57-deskford-jubilee-hall",
    "57-fettercairn-church-hall",
    "57-garioch-indoor-bowling-club",
    "57-greenwards-school",
    "57-victory-hall",
    "58-garioch-indoor-bowling-club",
    "58-greenwards-school",
    "58-king-memorial-hall-off-a95",
    "58-luthermuir-public-hall",
    "58-victory-hall",
    "59-garioch-indoor-bowling-club",
    "59-lumphanan-village-hall",
    "59-new-elgin-ashgrove-hall",
    "59-rothiemay-hall",
    "59-the-venue",
    "6-archiestown-hall",
    "6-banff-parish-church-hall",
    "6-maud-village-hall",
    "6-victoria-jubilee-hall",
    "60-function-hall",
    "60-garioch-indoor-bowling-club",
    "60-learney-hall",
    "60-new-elgin-ashgrove-hall",
    "60-the-venue",
    "61-function-hall",
    "61-inverbervie-burgh-hall",
    "61-inverurie-town-hall",
    "61-learney-hall",
    "61-new-elgin-ashgrove-hall",
    "62-buckie-methodist-church-hall",
    "62-inverbervie-burgh-hall",
    "62-inverurie-town-hall",
    "62-kincardine-oneil-village-hall",
    "62-moray-sports-centre",
    "63-banchory-town-hall",
    "63-gourdon-public-hall",
    "63-inverurie-town-hall",
    "63-moray-sports-centre",
    "63-north-church-hall",
    "64-banchory-town-hall",
    "64-inverurie-town-hall",
    "64-james-milne-institute",
    "64-marykirk-public-hall",
    "64-royal-british-legion-hall",
    "65-banchory-town-hall",
    "65-dyke-district-hall",
    "65-keithhall-village-hall",
    "65-royal-british-legion-hall",
    "65-st-cyrus-public-hall",
    "66-banchory-ternan-east-church-hall",
    "66-johnshaven-village-hall",
    "66-kinloss-church-of-scotland-hall",
    "66-portessie-methodist-church-hall",
    "66-st-andrews-church-hall",
    "67-banchory-ternan-east-church-hall",
    "67-kinloss-church-of-scotland-hall",
    "67-st-andrews-church-hall",
    "67-town-hall",
    "68-banchory-ternan-east-church-hall",
    "68-forres-tennis-clubhouse",
    "68-port-elphinstone-community-house-1-pinewood-house",
    "69-crathes-public-hall",
    "69-fintray-public-hall",
    "69-forres-house-community-centre",
    "7-craigellachie-village-hall",
    "7-king-george-v-memorial-hall",
    "7-mintlaw-public-hall",
    "7-wri-hall-hilton",
    "70-axis-centre",
    "70-ballogie-nursery-school",
    "70-forres-house-community-centre",
    "71-axis-centre",
    "71-banchory-guide-hall",
    "71-forres-town-hall",
    "72-axis-centre",
    "72-finzean-public-hall",
    "72-forres-town-hall",
    "73-forres-town-hall",
    "73-strachan-village-hall",
    "74-drumoak-church-hall",
    "74-pilmuir-school",
    "75-kirkton-hall",
    "75-pilmuir-school",
    "76-pilmuir-school",
    "77-pilmuir-school",
    "78-rafford-hall",
    "79-edinkillie-hall",
    "8-alvah-parish-hall",
    "8-drummuir-hall",
    "8-kemnay-village-hall",
    "8-mintlaw-public-hall",
    "9-fleming-hall",
    "9-hay-memorial-hall",
    "9-kemnay-village-hall",
    "9-stuartfield-village-hall",
)


class Command(BaseHalaroseCsvImporter):
    council_id = "ABE"
    addresses_name = (
        "2021-04-06T10:26:08.515364/Grampian polling_station_export-2021-04-05.csv"
    )

    stations_name = (
        "2021-04-06T10:26:08.515364/Grampian polling_station_export-2021-04-05.csv"
    )
    elections = ["2021-05-06"]

    def station_record_to_dict(self, record):
        station_hash = self.get_station_hash(record)
        if station_hash in ABERDEEN_EXCLUDE_STATIONS:
            return None
        if record.pollingstationname == "ST MARY'S EPISCOPAL CHURCH":
            record = record._replace(pollingstationpostcode="AB10 1UN")
        return super().station_record_to_dict(record)

    def address_record_to_dict(self, record):
        if record.housepostcode in ["AB12 5UQ"]:
            return None
        station_hash = self.get_station_hash(record)
        if station_hash in ABERDEEN_EXCLUDE_STATIONS:
            return None

        return super().address_record_to_dict(record)