From 701a711049ee01373bc3862cc441fc3065c8dbc2 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 24 Jul 2019 13:40:40 +0100 Subject: [Minor] Rename method name --- lualib/lua_bayes_learn.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lualib/lua_bayes_learn.lua') diff --git a/lualib/lua_bayes_learn.lua b/lualib/lua_bayes_learn.lua index 70cbb96c0..7df52a2ef 100644 --- a/lualib/lua_bayes_learn.lua +++ b/lualib/lua_bayes_learn.lua @@ -18,7 +18,7 @@ limitations under the License. local exports = {} -exports.autolearn = function(task, is_spam, is_unlearn) +exports.can_learn = function(task, is_spam, is_unlearn) local learn_type = task:get_request_header('Learn-Type') if not (learn_type and tostring(learn_type) == 'bulk') then -- cgit v1.2.3