commit fcf2c2b: [Minor] Fix keys name
Vsevolod Stakhov
vsevolod at rspamd.com
Mon Jul 29 17:50:01 UTC 2024
Author: Vsevolod Stakhov
Date: 2023-12-08 09:19:05 +0000
URL: https://github.com/rspamd/rspamd/commit/fcf2c2bb48edb3df99ba74a00506429f9ceb5977
[Minor] Fix keys name
---
lualib/redis_scripts/bayes_classify.lua | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lualib/redis_scripts/bayes_classify.lua b/lualib/redis_scripts/bayes_classify.lua
index 76e88a6f3..c999609e5 100644
--- a/lualib/redis_scripts/bayes_classify.lua
+++ b/lualib/redis_scripts/bayes_classify.lua
@@ -8,8 +8,8 @@ local input_tokens = cmsgpack.unpack(KEYS[2])
local output_spam = {}
local output_ham = {}
-local learned_ham = redis.call('HGET', prefix, 'learned_ham') or 0
-local learned_spam = redis.call('HGET', prefix, 'learned_spam') or 0
+local learned_ham = redis.call('HGET', prefix, 'learns_ham') or 0
+local learned_spam = redis.call('HGET', prefix, 'learns_spam') or 0
local prefix_underscore = prefix .. '_'
-- Output is a set of pairs (token_index, token_count), tokens that are not
More information about the Commits
mailing list