all_coins is a dictionary, thus needs .items() to turn it in to nickname, coins
This commit is contained in:
parent
773d11f6cb
commit
d07f9422f7
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue