Landing page shuffles all people who have taken the pledge and uploaded a picture.

This commit is contained in:
Kim Taylor
2024-09-25 14:58:52 +10:00
parent 8543bc1c53
commit decc12f381
2 changed files with 6 additions and 5 deletions

View File

@@ -17,7 +17,8 @@ candidates_files=()
for folder in "$DATA_PATH"/*; do
if test -f "$folder"/candidates.csv; then
candidates_files+=("$folder"/candidates.csv)
elif test -f "$folder"/candidates-generic.csv; then
fi
if test -f "$folder"/candidates-generic.csv; then
candidates_files+=("$folder"/candidates-generic.csv)
fi
done
@@ -26,4 +27,4 @@ pledge_sed=$(php pledge-update/homepage.php --candidates-files "${candidates_fil
content=$(sed "$pledge_sed" ../spl-data/movie-homepage)
wp post update 1803 --post_content="$content"
echo "$content" | wp post update 1803 -