From c07ae87e906329d41fc9f785cf0509e1177dee94 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 23 Jun 2020 11:14:26 +0100 Subject: [PATCH] [Minor] Neural: Fix override of the `max_train` -> `max_trains` --- src/plugins/lua/neural.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5