]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Fix condition check for training ANN
authorDmitriy Alekseev <1865999+dragoangel@users.noreply.github.com>
Fri, 9 Jan 2026 20:40:02 +0000 (21:40 +0100)
committerGitHub <noreply@github.com>
Fri, 9 Jan 2026 20:40:02 +0000 (21:40 +0100)
src/plugins/lua/neural.lua

index 5a5a2d18877b28958c490483d56c2aa990e2dd18..f2c1a0771b74fa55c83dda971f34339b331dd2b3 100644 (file)
@@ -402,7 +402,7 @@ end
 -- * Spawn learning process
 local function do_train_ann(worker, ev_base, rule, set, ann_key)
   -- Check if we need to train ann
-  if rule.store_set_only then
+  if rule.train.store_set_only then
     lua_util.debugm(N, rspamd_config, 'do_train_ann: skipping %s:%s key=%s due to store_set_only', rule.prefix, set.name, ann_key)
     return
   end