From 41cd96933cc56ec9b6d66db913e76429e9795924 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 1 Oct 2020 16:59:00 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20refill=5Fon=5Fcheckout=20g?= =?UTF-8?q?etting=20ignored?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worker.py b/worker.py index 8fa3533..fa68b04 100644 --- a/worker.py +++ b/worker.py @@ -664,7 +664,7 @@ class Worker(threading.Thread): self.bot.send_message(self.chat.id, self.loc.get("error_not_enough_credit")) # Suggest payment for missing credit value if configuration allows refill if self.cfg["Payments"]["CreditCard"]["credit_card_token"] != "" \ - and self.cfg["Appearance"]["refill_on_checkout"] == 'yes' \ + and self.cfg["Appearance"]["refill_on_checkout"] \ and self.Price(self.cfg["Payments"]["CreditCard"]["min_amount"]) <= \ credit_required <= \ self.Price(self.cfg["Payments"]["CreditCard"]["max_amount"]):