diff options
| author | 2018-10-18 13:43:26 +0100 | |
|---|---|---|
| committer | 2018-10-18 13:43:26 +0100 | |
| commit | ebdbc75a7ed2ab85df82b9f51d9e23e705682cd9 (patch) | |
| tree | 3fdeadd93d84ed67618bfa615eeea2923534fb48 | |
| parent | Typo in modules/coins.py, "coin_settings" -> "coins" (diff) | |
| signature | ||
coins should be (nickname, coins) not just coins
| -rw-r--r-- | modules/coins.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/coins.py b/modules/coins.py index f3073c5d..567e0d94 100644 --- a/modules/coins.py +++ b/modules/coins.py @@ -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]) |
