From c39f1e002f4ee650690672b601083e4bb629a31f Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 23 Jan 2019 08:22:08 +0000 Subject: [PATCH] Fix `coins` name collision (coins.py) --- modules/coins.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/coins.py b/modules/coins.py index 320b6eeb..8c6441b0 100644 --- a/modules/coins.py +++ b/modules/coins.py @@ -60,12 +60,12 @@ class Module(ModuleManager.BaseModule): user.set_setting("coins", self._coin_str(coins)) def _all_coins(self, server): - coins = server.get_all_user_settings("coins", []) + all_coins = server.get_all_user_settings("coins", []) for i, (nickname, coins) in enumerate(coins): - coins[i] = (nickname, decimal.Decimal(coins)) + all_coins[i] = (nickname, decimal.Decimal(coins)) - return dict(filter(lambda coin: coin[1], coins)) + return dict(filter(lambda coin: coin[1], all_coins)) def _redeem_amount(self, server): return decimal.Decimal(server.get_setting("redeem-amount",