Move bank name definition
This commit is contained in:
parent
cb70e7ad49
commit
8e867b8133
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue