Remove some debug statements

master
Mark Veidemanis 2 years ago
parent 2c828080c2
commit 1e201e3f26
Signed by: m
GPG Key ID: 5ACFCEED46C0904F

@ -80,7 +80,6 @@ class LocalPlatformClient(ABC):
if not dash:
return False
print("DASH", dash)
if dash["contact_count"] > 0:
for contact in dash["contact_list"]:
contact_id = contact["data"]["contact_id"]
@ -650,7 +649,6 @@ class LocalPlatformClient(ABC):
self.instance.platform_ad_ids[ad_id] = str(ad.id)
self.instance.save()
print("AD", ad_response)
return ad_response
async def dist_countries(self, ad, filter_asset=None):
@ -927,7 +925,6 @@ class LocalPlatformClient(ABC):
Send the reference to a customer.
"""
if self.instance.send is True:
print("SEND IS TRUE REF")
await self.api.contact_message_post(
trade_id,
f"When sending the payment please use reference code: {reference}",
@ -939,13 +936,10 @@ class LocalPlatformClient(ABC):
"""
log.info(f"Sending bank details/reference for {trade_id}")
if self.instance.send is True:
print("SEND IS TRUE")
account_info = self.get_matching_account_details(currency, ad)
print("ACCOUNT INFO", account_info)
formatted_account_info = self.format_payment_details(
currency, account_info, ad, real=True
)
print("formatted_account_info", formatted_account_info)
if not formatted_account_info:
log.error(f"Payment info invalid: {formatted_account_info}")
return
@ -1149,13 +1143,11 @@ class LocalPlatformClient(ABC):
def get_valid_account_details(self, ad):
currencies = self.instance.currencies
account_info = self.instance.account_info
print("GET VALID", ad)
account_whitelist = ad.account_whitelist
if account_whitelist:
whitelist = account_whitelist.splitlines()
else:
whitelist = None
print("WHITELIST", whitelist)
currency_account_info_map = {}
for currency in currencies:
for bank, accounts in account_info.items():

Loading…
Cancel
Save