Refactoring posting_attachments and fix sql in job "tr_cleanup_and_dlstat"

This commit is contained in:
Vasily Komrakov 2017-01-16 22:36:37 +03:00
commit d8f7a14d1d
2 changed files with 142 additions and 142 deletions

View file

@ -58,7 +58,7 @@ if ($tr_cfg['update_dlstat']) {
topic_id, user_id, IF(releaser, $releaser, seeder), SUM(up_add), SUM(down_add), IF(releaser, SUM(up_add), 0), SUM(speed_up), SUM(speed_down)
FROM " . BB_BT_TRACKER . "
WHERE (up_add != 0 OR down_add != 0)
GROUP BY topic_id, user_id
GROUP BY topic_id, user_id, releaser, seeder
");
// Reset up/down additions in tracker