coins should be (nickname, coins) not just coins
This commit is contained in:
parent
7f8acf58c7
commit
ebdbc75a7e
1 changed files with 2 additions and 1 deletions
|
@ -85,7 +85,8 @@ class Module(ModuleManager.BaseModule):
|
|||
coins = server.get_all_user_settings("wallets", [])
|
||||
|
||||
for i, (nickname, wallet) in enumerate(coins):
|
||||
coins[i] = sum([decimal.Decimal(v) for v in wallet.values()])
|
||||
user_coins = sum([decimal.Decimal(v) for v in wallet.values()])
|
||||
coins[i] = (nickname, wallet)
|
||||
|
||||
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