Create flag to use alternate configuration directive

This commit is contained in:
Mark Veidemanis 2022-04-20 20:46:02 +01:00
parent 0c374d9a15
commit e53721da8c
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 5 additions and 2 deletions

View File

@ -291,10 +291,13 @@ 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.
"""
if real:
payment = settings.Platform.PaymentDetailsReal
else:
payment = settings.Platform.PaymentDetails
payment_text = ""