From 8bd637df57775af665b62e766cf0d9ab819f0ecb Mon Sep 17 00:00:00 2001 From: justcool393 Date: Tue, 1 Nov 2022 03:04:56 -0500 Subject: [PATCH] leaderboards: use len --- files/classes/leaderboard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/classes/leaderboard.py b/files/classes/leaderboard.py index 3eaccaf39..0839b3f25 100644 --- a/files/classes/leaderboard.py +++ b/files/classes/leaderboard.py @@ -34,7 +34,7 @@ class Leaderboard: self.all_users = lb[0] self.v_position = lb[1] self.v_value = lb[2] - self.v_appears_in_ranking = self.v_position and self.v_position <= limit + self.v_appears_in_ranking = self.v_position and self.v_position <= len(self.all_users) if value_func: self.user_func = lambda u:u self.value_func = value_func