From: Vsevolod Stakhov Date: Tue, 23 Jun 2020 10:14:26 +0000 (+0100) Subject: [Minor] Neural: Fix override of the `max_train` -> `max_trains` X-Git-Tag: 2.6~301 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c07ae87e906329d41fc9f785cf0509e1177dee94;p=rspamd.git [Minor] Neural: Fix override of the `max_train` -> `max_trains` --- 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