1
Fork 0
mirror of https://github.com/Steffo99/greed.git synced 2024-11-21 21:44:19 +00:00

🐛 Fix refill_on_checkout getting ignored

This commit is contained in:
Steffo 2020-10-01 16:59:00 +02:00
parent 128c146210
commit 41cd96933c

View file

@ -664,7 +664,7 @@ class Worker(threading.Thread):
self.bot.send_message(self.chat.id, self.loc.get("error_not_enough_credit")) self.bot.send_message(self.chat.id, self.loc.get("error_not_enough_credit"))
# Suggest payment for missing credit value if configuration allows refill # Suggest payment for missing credit value if configuration allows refill
if self.cfg["Payments"]["CreditCard"]["credit_card_token"] != "" \ 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"]) <= \ and self.Price(self.cfg["Payments"]["CreditCard"]["min_amount"]) <= \
credit_required <= \ credit_required <= \
self.Price(self.cfg["Payments"]["CreditCard"]["max_amount"]): self.Price(self.cfg["Payments"]["CreditCard"]["max_amount"]):