forked from MarseyWorld/MarseyWorld
leaderboards: use len
parent
08700a65b0
commit
8bd637df57
|
@ -34,7 +34,7 @@ class Leaderboard:
|
||||||
self.all_users = lb[0]
|
self.all_users = lb[0]
|
||||||
self.v_position = lb[1]
|
self.v_position = lb[1]
|
||||||
self.v_value = lb[2]
|
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:
|
if value_func:
|
||||||
self.user_func = lambda u:u
|
self.user_func = lambda u:u
|
||||||
self.value_func = value_func
|
self.value_func = value_func
|
||||||
|
|
Loading…
Reference in New Issue