all_coins is a dictionary, thus needs .items() to turn it in to nickname, coins

This commit is contained in:
jesopo 2018-10-16 15:10:21 +01:00
parent 773d11f6cb
commit d07f9422f7

View file

@ -448,7 +448,7 @@ class Module(ModuleManager.BaseModule):
"interest-rate", DEFAULT_INTEREST_RATE)) "interest-rate", DEFAULT_INTEREST_RATE))
redeem_amount = self._redeem_amount(server) redeem_amount = self._redeem_amount(server)
for nickname, coins in all_coins: for nickname, coins in all_coins.items():
if coins > redeem_amount: if coins > redeem_amount:
interest = round(coins*interest_rate, 2) interest = round(coins*interest_rate, 2)
self._take_from_pool(server, interest) self._take_from_pool(server, interest)