From 0bddcb7520fe1612cb23f1ddcd048d51edf30b6f Mon Sep 17 00:00:00 2001 From: Kim Taylor Date: Tue, 4 Mar 2025 21:44:12 +1100 Subject: [PATCH] Generate division pages. Need to update text. --- make-council-pages.sh | 2 +- php-template/template.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/make-council-pages.sh b/make-council-pages.sh index c821993..e694f7c 100755 --- a/make-council-pages.sh +++ b/make-council-pages.sh @@ -4,7 +4,7 @@ # The folder containing data for each council. # Includes the list of candidates and any media. -DATA_PATH="../spl-data" +DATA_PATH="../spl-data/federal_2025" # Controls the flags that are passed to every usage of the wp command. #WP_FLAGS="--allow-root --path=/var/www/html" diff --git a/php-template/template.php b/php-template/template.php index 3d794dc..2753b19 100644 --- a/php-template/template.php +++ b/php-template/template.php @@ -35,12 +35,12 @@ if (isset($config["survey"])) { 1) { - $wardsDescription = $config['councilName'] . " is divided into " . $wardCount . " wards:"; + $wardsDescription = $config['divisionName'] . " is divided into " . $wardCount . " wards:"; } else { - $wardsDescription = $config['councilName'] . " is unsubdivided and does not contain any wards."; + $wardsDescription = $config['divisionName'] . " is unsubdivided and does not contain any wards."; } ?> @@ -106,7 +106,7 @@ if (isset($config["survey"])) { $groupNames = $config['groupNames']; $propertyOnCandidate = 'Group'; } else { - $groupNames = $config['wardNames']; + $groupNames = ['Fixme']; // $config['wardNames']; $propertyOnCandidate = 'Ward'; } ?>