From 8e867b813394886c966c10c58887f9ba0a4ad89f Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Tue, 19 Apr 2022 21:04:06 +0100 Subject: [PATCH] Move bank name definition --- handler/sources/localbitcoins.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/handler/sources/localbitcoins.py b/handler/sources/localbitcoins.py index 5bb29a4..7fc8ad5 100644 --- a/handler/sources/localbitcoins.py +++ b/handler/sources/localbitcoins.py @@ -501,6 +501,7 @@ class LBTC(util.Base): payment_details_text = self.markets.format_payment_details(currency, payment_details) ad_text = self.markets.format_ad(asset, currency, payment_details_text) min_amount, max_amount = self.money.get_minmax(self.platform, asset, currency) + bank_name = payment_details["bank"] price_formula = f"btc_in_usd*{settings.LocalBitcoins.Margin}" form = { @@ -511,7 +512,6 @@ class LBTC(util.Base): "track_max_amount": False, "require_trusted_by_advertiser": False, "online_provider": provider, - "bank_name": payment_details["bank"], "display_reference": False, } if visible is False: @@ -523,6 +523,7 @@ class LBTC(util.Base): form["msg"] = ad_text form["min_amount"] = round(min_amount, 2) form["max_amount"] = round(max_amount, 2) + form["bank_name"] = bank_name if edit: ad = self.lbtc.ad(ad_id=ad_id, **form)