Try using generic survey data for LGA lages.
This commit is contained in:
@@ -31,7 +31,14 @@ function create_or_update_page() {
|
||||
|
||||
jq -n '[inputs | { (input_filename | sub("\\.json$"; "") | sub("^.+/"; "")): . }] | reduce .[] as $item ({}; . + $item)' "${media_inputs[@]}" > "$DATA_PATH"/$slug/media.json
|
||||
|
||||
content=$(echo "$council_block" | jq -c | php php-template/main.php --council-file "php://stdin" --candidates-file "$DATA_PATH"/$slug/candidates.csv --media-file "$DATA_PATH"/$slug/media.json )
|
||||
# Community groups get priority
|
||||
if test -f "$DATA_PATH"/$slug/candidates.csv; then
|
||||
candidates_file="$DATA_PATH"/$slug/candidates.csv
|
||||
else
|
||||
candidates_file="$DATA_PATH"/$slug/candidates-generic.csv
|
||||
fi
|
||||
|
||||
content=$(echo "$council_block" | jq -c | php php-template/main.php --council-file "php://stdin" --candidates-file "$candidates_file" --media-file "$DATA_PATH"/$slug/media.json )
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
|
||||
|
||||
Reference in New Issue
Block a user