exclude deleted from leaderboard

This commit is contained in:
Brandon Thomas committed 2021-09-06 08:52:13 -04:00
1 parent ef5140e2f3
commit 412830e922
2 files changed
+5 -2

No files matched your search

@@ -43,6 +43,8 @@ ON
users.token = creator_user_token
WHERE
users.is_banned IS FALSE
AND tts_models.user_deleted_at IS NULL
AND tts_models.mod_deleted_at IS NULL
GROUP BY creator_user_token
ORDER BY uploaded_count desc
LIMIT 25;
@@ -43,8 +43,9 @@ ON
users.token = creator_user_token
WHERE
is_public_listing_approved IS TRUE
AND
users.is_banned IS FALSE
AND users.is_banned IS FALSE
AND w2l_templates.user_deleted_at IS NULL
AND w2l_templates.mod_deleted_at IS NULL
GROUP BY creator_user_token
ORDER BY uploaded_count desc
LIMIT 25;