From 922f795fe6f85b026b0b3c6af52571aad64c2c3e Mon Sep 17 00:00:00 2001 From: user Date: Sun, 6 Dec 2020 06:03:30 -0500 Subject: [PATCH] Adding comma to the adlist table format To account for the Date Updated column in the adlist table adding a comma to the adlist to be imported into the database. This was causing intermittent failures on updates and therefore no domains would be blocked. Signed-off-by: user Date: Sun Dec 6 06:03:30 2020 -0500 Committer: user On branch fix/gravity_date_updated Your branch and 'origin/fix/gravity_date_updated' have diverged, and have 1 and 1 different commits each, respectively. (use "git pull" to merge the remote branch into yours) Changes to be committed: modified: gravity.sh Signed-off-by: user --- gravity.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gravity.sh b/gravity.sh index 9ac38512..5a831dae 100755 --- a/gravity.sh +++ b/gravity.sh @@ -176,7 +176,7 @@ database_table_from_file() { echo "${rowid},\"${domain}\",${timestamp}" >> "${tmpFile}" elif [[ "${table}" == "adlist" ]]; then # Adlist table format - echo "${rowid},\"${domain}\",1,${timestamp},${timestamp},\"Migrated from ${source}\"" >> "${tmpFile}" + echo "${rowid},\"${domain}\",1,${timestamp},${timestamp},\"Migrated from ${source}\"," >> "${tmpFile}" else # White-, black-, and regexlist table format echo "${rowid},${type},\"${domain}\",1,${timestamp},${timestamp},\"Migrated from ${source}\"" >> "${tmpFile}"