Change another usage of coins when it should be all_coins (coins.py)

This commit is contained in:
jesopo 2019-01-23 08:23:09 +00:00
parent c39f1e002f
commit 96f6be087a

View file

@ -62,7 +62,7 @@ class Module(ModuleManager.BaseModule):
def _all_coins(self, server): def _all_coins(self, server):
all_coins = server.get_all_user_settings("coins", []) all_coins = server.get_all_user_settings("coins", [])
for i, (nickname, coins) in enumerate(coins): for i, (nickname, coins) in enumerate(all_coins):
all_coins[i] = (nickname, decimal.Decimal(coins)) all_coins[i] = (nickname, decimal.Decimal(coins))
return dict(filter(lambda coin: coin[1], all_coins)) return dict(filter(lambda coin: coin[1], all_coins))