disable leaderboard in wpd temporarily

master
Aevann 2023-06-30 23:38:59 +03:00
parent 486bacf5e6
commit 2eeb0dcbdf
1 changed files with 3 additions and 0 deletions

View File

@ -410,6 +410,9 @@ def transfer_bux(v:User, username:str):
@limiter.limit(DEFAULT_RATELIMIT, key_func=get_ID)
@auth_required
def leaderboard(v:User):
if SITE == 'watchpeopledie.tv':
abort(403, "Leaderboard siabled temporarily")
users = g.db.query(User)
coins = Leaderboard("Coins", "coins", "coins", "Coins", None, Leaderboard.get_simple_lb, User.coins, v, lambda u:u.coins, users)