diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-02-23 14:05:19 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-02-23 14:05:19 +0000 |
commit | 13885fec3a2a84a49687f2d50ce7cbe8723b2af2 (patch) | |
tree | 72368698d6a3b2327ad81ade322e13a6a58a54b7 /lualib/lua_stat.lua | |
parent | eb75c68f30b346b352e69eae90c363c8ef113175 (diff) | |
download | rspamd-13885fec3a2a84a49687f2d50ce7cbe8723b2af2.tar.gz rspamd-13885fec3a2a84a49687f2d50ce7cbe8723b2af2.zip |
[Feature] Add tooling to convert bayes schemas
Diffstat (limited to 'lualib/lua_stat.lua')
-rw-r--r-- | lualib/lua_stat.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lualib/lua_stat.lua b/lualib/lua_stat.lua index 4f5cafe3c..a5987f9da 100644 --- a/lualib/lua_stat.lua +++ b/lualib/lua_stat.lua @@ -449,6 +449,7 @@ local function load_sqlite_config(cfg) if classifier then if classifier[1] then for _,cls in ipairs(classifier) do + if cls.bayes then cls = cls.bayes end if cls.backend and cls.backend == 'sqlite3' then parse_classifier(cls) end |