Print details when adding status to adlist table

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2022-01-29 21:30:38 +01:00
parent e80a7731c9
commit 5cf6359cfb

View File

@ -266,9 +266,12 @@ database_adlist_number() {
database_adlist_status() {
# Only try to set the status when this field exists in the gravity database
if ! gravity_column_exists "adlist" "status"; then
echo "Gravity status column is not found!"
return;
fi
echo "Gravity status column found and set to ${2} (ID ${1})"
output=$( { printf ".timeout 30000\\nUPDATE adlist SET status = %i WHERE id = %i;\\n" "${2}" "${1}" | sqlite3 "${gravityDBfile}"; } 2>&1 )
status="$?"