From ac140f6aee0cb37471a7a26c144579c8c8003bc0 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Wed, 20 Apr 2022 20:46:46 +0100 Subject: [PATCH] Add platform and fix some calls --- handler/sources/agora.py | 2 +- handler/sources/localbitcoins.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/handler/sources/agora.py b/handler/sources/agora.py index 2e1ff92..e9d02db 100644 --- a/handler/sources/agora.py +++ b/handler/sources/agora.py @@ -533,7 +533,7 @@ class Agora(util.Base): :return: False or dict with response :rtype: bool or dict """ - dist_list = list(self.markets.create_distribution_list(filter_asset)) + dist_list = list(self.markets.create_distribution_list(self.platform, filter_asset)) our_ads = self.enum_ads() ( supported_currencies, diff --git a/handler/sources/localbitcoins.py b/handler/sources/localbitcoins.py index 8c4429a..429eb98 100644 --- a/handler/sources/localbitcoins.py +++ b/handler/sources/localbitcoins.py @@ -199,8 +199,8 @@ class LBTC(util.Base): return messages_tmp @util.handle_exceptions - def enum_ad_ids(self, page=0): - ads = self.lbtc._api_call(api_method="ads", query_values={"page": page}) + def enum_ad_ids(self, page=1): + ads = self.lbtc._api_call(api_method="api/ads/", query_values={"page": page}) if ads is False: return False ads_total = []