]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Store neural score in task cache
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 11 May 2021 12:31:14 +0000 (13:31 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 11 May 2021 12:31:14 +0000 (13:31 +0100)
src/plugins/lua/neural.lua

index 2ac8df59f33e55dbfdc471aff6da530624cf53d1..57ff9cc213eb3ca144a8ddcd09afdd12901d52c7 100644 (file)
@@ -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)