leaderboard: set value func in all cases

master
justcool393 2022-11-01 01:36:41 -05:00
parent 02dde2a96f
commit 55c8ce6e9d
1 changed files with 5 additions and 6 deletions

View File

@ -32,7 +32,6 @@ 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]
if self.v_value is None:
if value_func: if value_func:
self.value_func = value_func self.value_func = value_func
self.v_value = value_func(v) self.v_value = value_func(v)