forked from MarseyWorld/MarseyWorld
leaderboard: set value func in all cases
parent
02dde2a96f
commit
55c8ce6e9d
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue