aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-05-11 13:31:14 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-05-11 13:31:14 +0100
commit70811a88b383e270c4c5959a2c2a4b3a46042f89 (patch)
tree7a1a1c3272547dba1fc812104733051a360ada13
parent6d6bd488d30014ff95b5e4714142637768c87241 (diff)
downloadrspamd-70811a88b383e270c4c5959a2c2a4b3a46042f89.tar.gz
rspamd-70811a88b383e270c4c5959a2c2a4b3a46042f89.zip
[Minor] Store neural score in task cache
-rw-r--r--src/plugins/lua/neural.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/lua/neural.lua b/src/plugins/lua/neural.lua
index 2ac8df59f..57ff9cc21 100644
--- a/src/plugins/lua/neural.lua
+++ b/src/plugins/lua/neural.lua
@@ -114,6 +114,7 @@ local function ann_scores_filter(task)
score = out[1]
local symscore = string.format('%.3f', score)
+ task:cache_set(rule.prefix .. '_neural_score', score)
lua_util.debugm(N, task, '%s:%s:%s ann score: %s',
rule.prefix, set.name, set.ann.version, symscore)