Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- adding manual assinged electorates / states to download
  • Loading branch information
temi committed Sep 27, 2024
1 parent d3a55c8 commit fc1094d
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,19 @@ class ProjectXlsExporter extends ProjectExporter {
else
log.error ("No facet config found for layer $layer.")
}

if (project.geographicInfo) {
// load from manually assigned electorates/states
if (!project.containsKey(getPropertyNameForFacet("elect"))) {
project[getPropertyNameForFacet("elect")] = project.geographicInfo.primaryElectorate
project[getPropertyNameForFacet("elect","other")] = project.geographicInfo.otherElectorates?.join("; ")
}

if (!project.containsKey(getPropertyNameForFacet("state"))) {
project[getPropertyNameForFacet("state")] = project.geographicInfo.primaryState
project[getPropertyNameForFacet("state","other")] = project.geographicInfo.otherStates?.join("; ")
}
}
}

private addProjectGeo(Map project) {
Expand Down

0 comments on commit fc1094d

Please sign in to comment.