From 304b2d05b11be4562585e7df06beec6f6e22d97b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6nig?= Date: Mon, 3 Jan 2022 21:40:28 +0100 Subject: [PATCH] Use adlist instead of vw_adlist MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christian König --- gravity.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gravity.sh b/gravity.sh index e886530d..02ddc3c3 100755 --- a/gravity.sh +++ b/gravity.sh @@ -88,7 +88,7 @@ gravity_swap_databases() { local str copyGravity enabled_adlists # Only build an index if there are enabled adlists - enabled_adlists="$(sqlite3 "${gravityTEMPfile}" "Select Count(id) from vw_adlist;")" + enabled_adlists="$(sqlite3 "${gravityTEMPfile}" "Select Count(id) from adlist where enabled=1;")" if [[ enabled_adlists -ge 1 ]]; then str="Building tree" echo -ne " ${INFO} ${str}..." @@ -104,7 +104,7 @@ gravity_swap_databases() { echo -e "${OVER} ${TICK} ${str}" else str="No enabled adlists. Skipping building tree" - echo -ne " ${INFO} ${str}..." + echo -ne " ${INFO} ${str}...\\n" fi str="Swapping databases"