From e16735cfef8edfd7d01ceaa6e0c580473d11f36b Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Tue, 26 Jan 2016 18:11:14 +0200 Subject: [PATCH] Fix user/language learn count in sqlite statistics (#496) --- src/libstat/backends/sqlite3_backend.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libstat/backends/sqlite3_backend.c b/src/libstat/backends/sqlite3_backend.c index 0983236bc..7f57636e4 100644 --- a/src/libstat/backends/sqlite3_backend.c +++ b/src/libstat/backends/sqlite3_backend.c @@ -887,7 +887,7 @@ rspamd_sqlite3_inc_learns (struct rspamd_task *task, gpointer runtime, bk = rt->db; rspamd_sqlite3_run_prstmt (task->task_pool, bk->sqlite, bk->prstmt, RSPAMD_STAT_BACKEND_INC_LEARNS, - rt->user_id, rt->lang_id); + rt->lang_id, rt->user_id); if (bk->in_transaction) { rspamd_sqlite3_run_prstmt (task->task_pool, bk->sqlite, bk->prstmt, @@ -913,7 +913,7 @@ rspamd_sqlite3_dec_learns (struct rspamd_task *task, gpointer runtime, bk = rt->db; rspamd_sqlite3_run_prstmt (task->task_pool, bk->sqlite, bk->prstmt, RSPAMD_STAT_BACKEND_DEC_LEARNS, - rt->user_id, rt->lang_id); + rt->lang_id, rt->user_id); if (bk->in_transaction) { rspamd_sqlite3_run_prstmt (task->task_pool, bk->sqlite, bk->prstmt, -- 2.39.5