Fix Queenscliffe missing from council_names.json
This commit is contained in:
@@ -35,7 +35,7 @@ The "short" named is created by taking the electorate name and removing the word
|
||||
The file can be generated using the `jq` tool and the VEC data:
|
||||
|
||||
```
|
||||
jq '[.[] | {name: .electorateName, electorateId: .electorateId, shortName: .parentElectorateName | match("(.*?)(?:(?: Rural)?(?: City| Shire) Council)").captures[0].string, parentElectorateId: .parentElectorateId, councilName: .parentElectorateName }] | group_by(.parentElectorateId) | map({shortName: .[0].shortName, slug: .[0].shortName | ascii_downcase | split(" ") | join("-"), councilName: .[0].councilName, wardNames: . | map(.name) }) | sort_by(.shortName)' "VEC Data\wards.json" > council_names.json
|
||||
jq '[.[] | {name: .electorateName, electorateId: .electorateId, shortName: .parentElectorateName | match("(.*?)(?:(?: Rural)?(?: City| Shire| Borough) Council)").captures[0].string, parentElectorateId: .parentElectorateId, councilName: .parentElectorateName }] | group_by(.parentElectorateId) | map({shortName: .[0].shortName, slug: .[0].shortName | ascii_downcase | split(" ") | join("-"), councilName: .[0].councilName, wardNames: . | map(.name) }) | sort_by(.shortName)' "VEC Data\wards.json" > council_names.json
|
||||
```
|
||||
|
||||
## lga-links-filter
|
||||
|
||||
@@ -786,6 +786,14 @@
|
||||
"Beaufort"
|
||||
]
|
||||
},
|
||||
{
|
||||
"shortName": "Queenscliffe",
|
||||
"slug": "queenscliffe",
|
||||
"councilName": "Queenscliffe Borough Council",
|
||||
"wardNames": [
|
||||
"Unsubdivided"
|
||||
]
|
||||
},
|
||||
{
|
||||
"shortName": "South Gippsland",
|
||||
"slug": "south-gippsland",
|
||||
|
||||
Reference in New Issue
Block a user