From 128c146210de36ee56ac2b286c20454e81d4072a Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 12 Sep 2020 16:07:47 +0200 Subject: [PATCH] Fix payment presets list being split as if it was a string --- worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worker.py b/worker.py index adffc0b..8fa3533 100644 --- a/worker.py +++ b/worker.py @@ -784,7 +784,7 @@ class Worker(threading.Thread): """Add money to the wallet through a credit card payment.""" log.debug("Displaying __add_credit_cc") # Create a keyboard to be sent later - presets = list(map(lambda s: s.strip(" "), self.cfg["Payments"]["CreditCard"]["payment_presets"].split('|'))) + presets = self.cfg["Payments"]["CreditCard"]["payment_presets"] keyboard = [[telegram.KeyboardButton(str(self.Price(preset)))] for preset in presets] keyboard.append([telegram.KeyboardButton(self.loc.get("menu_cancel"))]) # Boolean variable to check if the user has cancelled the action