aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2016-01-26 18:11:14 +0200
committerAndrew Lewis <nerf@judo.za.org>2016-01-26 18:11:14 +0200
commite16735cfef8edfd7d01ceaa6e0c580473d11f36b (patch)
treee91e39bf6e18d22ff4607a48534822e6b8b50d76 /src
parentb8e62273f640163adeeb30d4f9fbb6a9d40ba353 (diff)
downloadrspamd-e16735cfef8edfd7d01ceaa6e0c580473d11f36b.tar.gz
rspamd-e16735cfef8edfd7d01ceaa6e0c580473d11f36b.zip
Fix user/language learn count in sqlite statistics (#496)
Diffstat (limited to 'src')
-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,