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)
|
payment_details_text = self.markets.format_payment_details(currency, payment_details)
|
||||||
ad_text = self.markets.format_ad(asset, currency, payment_details_text)
|
ad_text = self.markets.format_ad(asset, currency, payment_details_text)
|
||||||
min_amount, max_amount = self.money.get_minmax(self.platform, asset, currency)
|
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}"
|
price_formula = f"btc_in_usd*{settings.LocalBitcoins.Margin}"
|
||||||
form = {
|
form = {
|
||||||
|
@ -511,7 +512,6 @@ class LBTC(util.Base):
|
||||||
"track_max_amount": False,
|
"track_max_amount": False,
|
||||||
"require_trusted_by_advertiser": False,
|
"require_trusted_by_advertiser": False,
|
||||||
"online_provider": provider,
|
"online_provider": provider,
|
||||||
"bank_name": payment_details["bank"],
|
|
||||||
"display_reference": False,
|
"display_reference": False,
|
||||||
}
|
}
|
||||||
if visible is False:
|
if visible is False:
|
||||||
|
@ -523,6 +523,7 @@ class LBTC(util.Base):
|
||||||
form["msg"] = ad_text
|
form["msg"] = ad_text
|
||||||
form["min_amount"] = round(min_amount, 2)
|
form["min_amount"] = round(min_amount, 2)
|
||||||
form["max_amount"] = round(max_amount, 2)
|
form["max_amount"] = round(max_amount, 2)
|
||||||
|
form["bank_name"] = bank_name
|
||||||
|
|
||||||
if edit:
|
if edit:
|
||||||
ad = self.lbtc.ad(ad_id=ad_id, **form)
|
ad = self.lbtc.ad(ad_id=ad_id, **form)
|
||||||
|
|
Loading…
Reference in New Issue