diff options
Diffstat (limited to 'lualib/redis_scripts/bayes_learn.lua')
-rw-r--r-- | lualib/redis_scripts/bayes_learn.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lualib/redis_scripts/bayes_learn.lua b/lualib/redis_scripts/bayes_learn.lua index 2b74fcca9..638254706 100644 --- a/lualib/redis_scripts/bayes_learn.lua +++ b/lualib/redis_scripts/bayes_learn.lua @@ -7,9 +7,9 @@ -- key5 - set of tokens encoded in messagepack array of int64_t local prefix = KEYS[1] -local is_spam = KEYS[2] +local is_spam = KEYS[2] == 'true' and true or false local symbol = KEYS[3] -local is_unlearn = KEYS[4] +local is_unlearn = KEYS[4] == 'true' and true or false local input_tokens = cmsgpack.unpack(KEYS[5]) local prefix_underscore = prefix .. '_' |