Swap priority of pledge images.
This commit is contained in:
@@ -10,12 +10,13 @@ DEFAULT_IMAGE="../spl-data/default.png.json"
|
|||||||
# Iterate over folders in data path
|
# Iterate over folders in data path
|
||||||
candidates_files=()
|
candidates_files=()
|
||||||
for folder in "$DATA_PATH"/*; do
|
for folder in "$DATA_PATH"/*; do
|
||||||
if test -f "$folder"/candidates.csv; then
|
|
||||||
candidates_files+=("$folder"/candidates.csv)
|
|
||||||
fi
|
|
||||||
if test -f "$folder"/candidates-generic.csv; then
|
if test -f "$folder"/candidates-generic.csv; then
|
||||||
candidates_files+=("$folder"/candidates-generic.csv)
|
candidates_files+=("$folder"/candidates-generic.csv)
|
||||||
fi
|
fi
|
||||||
|
# Community groups get priority
|
||||||
|
if test -f "$folder"/candidates.csv; then
|
||||||
|
candidates_files+=("$folder"/candidates.csv)
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
content=$(php pledge-update/pledge-page.php --candidates-files "${candidates_files[*]}" \
|
content=$(php pledge-update/pledge-page.php --candidates-files "${candidates_files[*]}" \
|
||||||
|
|||||||
@@ -15,12 +15,13 @@ DATA_PATH="../spl-data"
|
|||||||
|
|
||||||
candidates_files=()
|
candidates_files=()
|
||||||
for folder in "$DATA_PATH"/*; do
|
for folder in "$DATA_PATH"/*; do
|
||||||
if test -f "$folder"/candidates.csv; then
|
|
||||||
candidates_files+=("$folder"/candidates.csv)
|
|
||||||
fi
|
|
||||||
if test -f "$folder"/candidates-generic.csv; then
|
if test -f "$folder"/candidates-generic.csv; then
|
||||||
candidates_files+=("$folder"/candidates-generic.csv)
|
candidates_files+=("$folder"/candidates-generic.csv)
|
||||||
fi
|
fi
|
||||||
|
# Community groups get priority
|
||||||
|
if test -f "$folder"/candidates.csv; then
|
||||||
|
candidates_files+=("$folder"/candidates.csv)
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
pledge_sed=$(php pledge-update/homepage.php --candidates-files "${candidates_files[*]}")
|
pledge_sed=$(php pledge-update/homepage.php --candidates-files "${candidates_files[*]}")
|
||||||
|
|||||||
Reference in New Issue
Block a user