aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/neural.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-06-23 11:14:26 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-06-23 11:14:26 +0100
commitc07ae87e906329d41fc9f785cf0509e1177dee94 (patch)
treede417697e8225a1efff89a90dc7c88da022747d2 /src/plugins/lua/neural.lua
parent6808cdc0b20afbcca8da2847e3bc31bd510d6c21 (diff)
downloadrspamd-c07ae87e906329d41fc9f785cf0509e1177dee94.tar.gz
rspamd-c07ae87e906329d41fc9f785cf0509e1177dee94.zip
[Minor] Neural: Fix override of the `max_train` -> `max_trains`
Diffstat (limited to 'src/plugins/lua/neural.lua')
-rw-r--r--src/plugins/lua/neural.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/neural.lua b/src/plugins/lua/neural.lua
index ed7cb4f6c..e6c52912a 100644
--- a/src/plugins/lua/neural.lua
+++ b/src/plugins/lua/neural.lua
@@ -1411,7 +1411,7 @@ for k,r in pairs(rules) do
if not rule_elt.name then
rule_elt.name = k
end
- if rule_elt.train.max_train then
+ if rule_elt.train.max_train and not rule_elt.train.max_trains then
rule_elt.train.max_trains = rule_elt.train.max_train
end