From 24129b9c32feba327a1abd58eb764b4e6f2b10c0 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 27 Oct 2023 00:01:00 +0300 Subject: [PATCH] use FEATURES --- files/routes/users.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/files/routes/users.py b/files/routes/users.py index b7c8c48a8..544642e16 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -502,10 +502,11 @@ def leaderboard_cached(v): leaderboards = [coins, marseybux, coins_spent, truescore, subscribers, posts, comments, received_awards, badges, blocks, owned_hats] - if SITE == 'rdrama.net': + if FEATURES["HAT_SUBMISSIONS"]: leaderboards.append(Leaderboard("Designed hats", "designed hats", "designed-hats", "Designed Hats", None, Leaderboard.get_hat_lb, User.designed_hats, v, None, None)) - leaderboards.append(Leaderboard("Emojis made", "emojis made", "emojis-made", "Emojis Made", None, Leaderboard.get_badge_emoji_lb, Emoji.author_id, v, None, None)) + if FEATURES["EMOJI_SUBMISSIONS"]: + leaderboards.append(Leaderboard("Emojis made", "emojis made", "emojis-made", "Emojis Made", None, Leaderboard.get_badge_emoji_lb, Emoji.author_id, v, None, None)) leaderboards.append(Leaderboard("Upvotes given", "upvotes given", "upvotes-given", "Upvotes Given", "upvoting", Leaderboard.get_upvotes_lb, None, v, None, None))