diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-12-08 09:19:05 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-12-08 09:19:05 +0000 |
commit | fcf2c2bb48edb3df99ba74a00506429f9ceb5977 (patch) | |
tree | 263268506f78aee18ebe127dc0ce6069949057bf /lualib/redis_scripts | |
parent | 752414a1f585b5ad3b03d812eb2aa995e899e9b3 (diff) | |
download | rspamd-fcf2c2bb48edb3df99ba74a00506429f9ceb5977.tar.gz rspamd-fcf2c2bb48edb3df99ba74a00506429f9ceb5977.zip |
[Minor] Fix keys name
Diffstat (limited to 'lualib/redis_scripts')
-rw-r--r-- | lualib/redis_scripts/bayes_classify.lua | 4 |
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 |