From d07f9422f7499b9c2bae6d0014a4bfdecd1a32f3 Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 16 Oct 2018 15:10:21 +0100 Subject: all_coins is a dictionary, thus needs .items() to turn it in to `nickname, coins` --- modules/coins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/coins.py b/modules/coins.py index 9e7cd2af..6298dcb6 100644 --- a/modules/coins.py +++ b/modules/coins.py @@ -448,7 +448,7 @@ class Module(ModuleManager.BaseModule): "interest-rate", DEFAULT_INTEREST_RATE)) redeem_amount = self._redeem_amount(server) - for nickname, coins in all_coins: + for nickname, coins in all_coins.items(): if coins > redeem_amount: interest = round(coins*interest_rate, 2) self._take_from_pool(server, interest) -- cgit v1.3.1-10-gc9f91