Make IDs of anti-/gravity lists available in vw_(anti)gravity

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER 2023-12-25 05:29:11 +01:00
parent 6e8029f69f
commit 0066c6fbff
No known key found for this signature in database
GPG key ID: 00135ACBD90B28DD
4 changed files with 35 additions and 4 deletions

View file

@ -78,7 +78,7 @@ gravity_build_tree() {
echo -ne " ${INFO} ${str}..."
# The index is intentionally not UNIQUE as poor quality adlists may contain domains more than once
output=$( { pihole-FTL sqlite3 -ni "${gravityTEMPfile}" "CREATE INDEX idx_gravity ON gravity (domain, adlist_id);"; } 2>&1 )
output=$( { time pihole-FTL sqlite3 -ni "${gravityTEMPfile}" "CREATE INDEX idx_gravity ON gravity (domain, adlist_id);"; } )
status="$?"
if [[ "${status}" -ne 0 ]]; then