From 331fd375f4ba24bb9a25604257fc9dcdf2278cd3 Mon Sep 17 00:00:00 2001 From: Leo Hemsted Date: Tue, 25 Aug 2020 18:09:21 +0100 Subject: [PATCH] dont include duplicate unitary districts they're in both the local authority and County & Unitary Authority data sets, so we should only add them once. Keep the LA one so the ctyua19 dataset is only used for counties --- app/broadcast_areas/create-broadcast-areas-db.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/broadcast_areas/create-broadcast-areas-db.py b/app/broadcast_areas/create-broadcast-areas-db.py index f83fecbfc..71bfc13a8 100755 --- a/app/broadcast_areas/create-broadcast-areas-db.py +++ b/app/broadcast_areas/create-broadcast-areas-db.py @@ -205,6 +205,10 @@ for feature in geojson.loads(ctyua19_filepath.read_text())['features']: print('County/Unitary Authority', group_name) # noqa: T001 + la_id = 'lad20-' + ctyua_id + if repo.get_areas([la_id]): + continue + group_id = "ctyua19-" + ctyua_id feature, simple_feature = (