aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/redis_scripts
diff options
context:
space:
mode:
Diffstat (limited to 'lualib/redis_scripts')
-rw-r--r--lualib/redis_scripts/bayes_classify.lua4
1 files 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