Removed private accounts from indexing.

This commit is contained in:
Andrew Lalis 2023-02-06 13:31:23 +01:00
parent ee5ff41167
commit 54f17d4cec
1 changed files with 2 additions and 1 deletions

View File

@ -3,5 +3,6 @@ SELECT
u.email as email,
u.name as name
FROM auth_user u
WHERE u.activated = TRUE
LEFT JOIN auth_user_preferences p ON u.id = p.user_id
WHERE u.activated = TRUE AND p.account_private = FALSE
ORDER BY u.created_at;