From fcf2c2bb48edb3df99ba74a00506429f9ceb5977 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 8 Dec 2023 09:19:05 +0000 Subject: [PATCH] [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 -- 2.39.5