mirror of
https://github.com/Steffo99/greed.git
synced 2024-11-21 13:34:18 +00:00
🐛 Fix refill_on_checkout getting ignored
This commit is contained in:
parent
128c146210
commit
41cd96933c
1 changed files with 1 additions and 1 deletions
|
@ -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"]):
|
||||
|
|
Loading…
Reference in a new issue