From e53721da8c1cde4dc47a7687323d0fbbcdfa8a95 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Wed, 20 Apr 2022 20:46:02 +0100 Subject: [PATCH] Create flag to use alternate configuration directive --- handler/markets.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/handler/markets.py b/handler/markets.py index ecc0c13..06b6a84 100644 --- a/handler/markets.py +++ b/handler/markets.py @@ -291,11 +291,14 @@ class Markets(util.Base): ad = ad.replace("\\t", "\t") return ad - def format_payment_details(self, currency, payment_details): + def format_payment_details(self, currency, payment_details, real=False): """ Format the payment details. """ - payment = settings.Platform.PaymentDetails + if real: + payment = settings.Platform.PaymentDetailsReal + else: + payment = settings.Platform.PaymentDetails payment_text = "" for field, value in payment_details.items():