From b24e37fed6f941ab6e93f45b6f818d616bbdb10f Mon Sep 17 00:00:00 2001 From: jesopo Date: Fri, 10 Aug 2018 12:59:06 +0100 Subject: fixed filtering out bankrupt users from !richest --- modules/coins.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/coins.py b/modules/coins.py index 82d5e493..68d48a50 100644 --- a/modules/coins.py +++ b/modules/coins.py @@ -44,7 +44,8 @@ class Module(object): def richest(self, event): all_coins = event["server"].get_all_user_settings("coins", []) - all_coins = list(filter(lambda coin: coin[1], all_coins)) + all_coins = list(filter(lambda coin: decimal.Decimal(coin[1]), + all_coins)) items = [(coin[0], decimal.Decimal(coin[1])) for coin in all_coins] all_coins = dict(items) -- cgit v1.3.1-10-gc9f91