fixed filtering out bankrupt users from !richest
This commit is contained in:
parent
922ff5ac84
commit
b24e37fed6
1 changed files with 2 additions and 1 deletions
|
@ -44,7 +44,8 @@ class Module(object):
|
|||
|
||||
def richest(self, event):
|
||||
all_coins = event["server"].get_all_user_settings("coins", [])
|
||||
all_coins = list(filter(lambda coin: coin[1], all_coins))
|
||||
all_coins = list(filter(lambda coin: decimal.Decimal(coin[1]),
|
||||
all_coins))
|
||||
items = [(coin[0], decimal.Decimal(coin[1])) for coin in all_coins]
|
||||
all_coins = dict(items)
|
||||
|
||||
|
|
Loading…
Reference in a new issue