Exclude System user from post_edits report (#6130)

This commit is contained in:
Simon Cossar 2018-07-21 02:17:25 -07:00 committed by Régis Hanol
parent 9afc4cf8c1
commit d705f859db
1 changed files with 2 additions and 1 deletions

View File

@ -895,7 +895,8 @@ class Report
FROM post_revisions pr
JOIN users u
ON u.id = pr.user_id
WHERE pr.created_at >= '#{report.start_date}'
WHERE u.id > 0
AND pr.created_at >= '#{report.start_date}'
AND pr.created_at <= '#{report.end_date}'
ORDER BY pr.created_at DESC
LIMIT 20