mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Refactoring posting_attachments and fix sql in job "tr_cleanup_and_dlstat"
This commit is contained in:
parent
dafef6f624
commit
d8f7a14d1d
2 changed files with 142 additions and 142 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue