Use "wallets" for !richest, not "coins"
This commit is contained in:
parent
b799f543a9
commit
1300310669
1 changed files with 5 additions and 1 deletions
|
@ -82,7 +82,11 @@ class Module(ModuleManager.BaseModule):
|
|||
self._set_user_wallets(user, wallets)
|
||||
|
||||
def _all_coins(self, server):
|
||||
coins = server.get_all_user_settings("coins", [])
|
||||
coins = server.get_all_user_settings("wallets", [])
|
||||
|
||||
for i, (nickname, wallet) in enumerate(coin_settings):
|
||||
coins[i] = sum([decimal.Decimal(v) for v in wallet.values()])
|
||||
|
||||
coins = list(filter(lambda coin: decimal.Decimal(coin[1]), coins))
|
||||
return dict([(coin[0], decimal.Decimal(coin[1])) for coin in coins])
|
||||
|
||||
|
|
Loading…
Reference in a new issue