aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-26 17:50:47 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-26 17:50:47 +0000
commit3eed4e07eab5476697cee45e376274d8fd8fe1b6 (patch)
tree8996c321ae9e7d1e4940c203b2d8b35c44e1a2fb
parentf2d698079160e0f36c0575f012e84d60d4f68cf1 (diff)
parente16735cfef8edfd7d01ceaa6e0c580473d11f36b (diff)
downloadrspamd-3eed4e07eab5476697cee45e376274d8fd8fe1b6.tar.gz
rspamd-3eed4e07eab5476697cee45e376274d8fd8fe1b6.zip
Merge pull request #504 from fatalbanana/master
Fix user/language learn count in sqlite statistics (#496)
-rw-r--r--src/libstat/backends/sqlite3_backend.c4
1 files 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,