Remove some print statements

This commit is contained in:
Mark Veidemanis 2023-05-06 11:54:00 +01:00
parent 6ea82857f2
commit 8f92c7c840
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 0 additions and 9 deletions

View File

@ -630,7 +630,6 @@ class LocalPlatformClient(ABC):
:rtype: bool or dict :rtype: bool or dict
""" """
dist_list = list(self.create_distribution_list(ad, filter_asset)) dist_list = list(self.create_distribution_list(ad, filter_asset))
print("Dist list", dist_list)
our_ads = await self.enum_ads() our_ads = await self.enum_ads()
( (
supported_currencies, supported_currencies,
@ -641,14 +640,11 @@ class LocalPlatformClient(ABC):
log.error("Could not get our ads") log.error("Could not get our ads")
return False return False
our_ads = [(x[0], x[2], x[3], x[4]) for x in our_ads] our_ads = [(x[0], x[2], x[3], x[4]) for x in our_ads]
print("our_ads", our_ads)
to_return = [] to_return = []
for asset, countrycode, currency, provider in dist_list: for asset, countrycode, currency, provider in dist_list:
if (asset, countrycode, currency, provider) not in our_ads: if (asset, countrycode, currency, provider) not in our_ads:
print("NOT IN OUR ADS", asset, countrycode, currency, provider)
if currency not in supported_currencies: if currency not in supported_currencies:
print("CURRENCY", currency, "NOT IN", supported_currencies)
continue continue
# Create the actual ad and pass in all the stuff # Create the actual ad and pass in all the stuff
if not settings.DUMMY: if not settings.DUMMY:
@ -660,7 +656,6 @@ class LocalPlatformClient(ABC):
payment_details=account_info[currency], payment_details=account_info[currency],
ad=ad, ad=ad,
) )
print("REAL CREATE AD RETURN", rtrn)
else: else:
log.debug( log.debug(
f"DUMMY: create_ad({asset}, {countrycode}, {currency}, " f"DUMMY: create_ad({asset}, {countrycode}, {currency}, "
@ -732,9 +727,7 @@ class LocalPlatformClient(ABC):
:rtype: list :rtype: list
""" """
existing_ads = await self.enum_ads() existing_ads = await self.enum_ads()
print("EXISTING", existing_ads)
_size = len(existing_ads) _size = len(existing_ads)
print("SIZE", _size)
repeated = [] repeated = []
for i in range(_size): for i in range(_size):
k = i + 1 k = i + 1
@ -746,7 +739,6 @@ class LocalPlatformClient(ABC):
repeated.append(existing_ads[i]) repeated.append(existing_ads[i])
actioned = [] actioned = []
print("repeated", repeated)
for ad_id, country, currency in repeated: for ad_id, country, currency in repeated:
if not settings.DUMMY: if not settings.DUMMY:
rtrn = await self.api.ad_delete(ad_id) rtrn = await self.api.ad_delete(ad_id)
@ -755,7 +747,6 @@ class LocalPlatformClient(ABC):
rtrn = {"success": True} rtrn = {"success": True}
actioned.append(rtrn["success"]) actioned.append(rtrn["success"])
print("actioned", actioned)
return all(actioned) return all(actioned)
async def release_trade_escrow(self, trade_id, reference): async def release_trade_escrow(self, trade_id, reference):