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
This commit is contained in:
Leo Hemsted
2020-08-25 18:09:21 +01:00
parent a02e03ea3d
commit 331fd375f4

View File

@@ -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 = (