From 3fba40296497cb40b4bcf754cbebaa2ac90e0ee6 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Tue, 8 Mar 2022 21:01:21 +0000 Subject: [PATCH] Don't do a different thing for only one provider --- handler/agora.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/handler/agora.py b/handler/agora.py index b702bb9..e3a1d24 100644 --- a/handler/agora.py +++ b/handler/agora.py @@ -262,14 +262,14 @@ class Agora(util.Base): providers = ["REVOLUT"] # buy-monero-online, buy-bitcoin-online # Work around Agora weirdness calling it bitcoins - if len(providers) == 1: - ads = self.agora._api_call(api_method=f"buy-{coin}-online/{currency}/{providers[0]}", query_values={"page": page}) - elif len(providers) > 1: - ads = self.agora._api_call(api_method=f"buy-{coin}-online/{currency}", query_values={"page": page}) - # with open("pub.json", "a") as f: - # import json - # f.write(json.dumps([page, currency, asset, ads])+"\n") - # f.close() + # if len(providers) == 1: + # ads = self.agora._api_call(api_method=f"buy-{coin}-online/{currency}/{providers[0]}", query_values={"page": page}) + # elif len(providers) > 1: + ads = self.agora._api_call(api_method=f"buy-{coin}-online/{currency}", query_values={"page": page}) + # with open("pub.json", "a") as f: + # import json + # f.write(json.dumps([page, currency, asset, ads])+"\n") + # f.close() if ads is None: return False if ads is False: