Don't do a different thing for only one provider
This commit is contained in:
@@ -262,9 +262,9 @@ class Agora(util.Base):
|
|||||||
providers = ["REVOLUT"]
|
providers = ["REVOLUT"]
|
||||||
# buy-monero-online, buy-bitcoin-online
|
# buy-monero-online, buy-bitcoin-online
|
||||||
# Work around Agora weirdness calling it bitcoins
|
# Work around Agora weirdness calling it bitcoins
|
||||||
if len(providers) == 1:
|
# if len(providers) == 1:
|
||||||
ads = self.agora._api_call(api_method=f"buy-{coin}-online/{currency}/{providers[0]}", query_values={"page": page})
|
# ads = self.agora._api_call(api_method=f"buy-{coin}-online/{currency}/{providers[0]}", query_values={"page": page})
|
||||||
elif len(providers) > 1:
|
# elif len(providers) > 1:
|
||||||
ads = self.agora._api_call(api_method=f"buy-{coin}-online/{currency}", query_values={"page": page})
|
ads = self.agora._api_call(api_method=f"buy-{coin}-online/{currency}", query_values={"page": page})
|
||||||
# with open("pub.json", "a") as f:
|
# with open("pub.json", "a") as f:
|
||||||
# import json
|
# import json
|
||||||
|
|||||||
Reference in New Issue
Block a user