Skip to content
Snippets Groups Projects
Commit 0b8ad163 authored by Bartek Wrona's avatar Bartek Wrona
Browse files

get_blog_authors switched into condenser API

parent a2ea557d
No related branches found
No related tags found
1 merge request!9Eliminated usage of HF24 deprecated follow_api
......@@ -991,13 +991,7 @@ class Account(BlockchainObject):
if not self.blockchain.is_connected():
raise OfflineHasNoRPCException("No RPC available in offline mode!")
self.blockchain.rpc.set_next_node_on_empty_reply(False)
if self.blockchain.rpc.get_use_appbase():
try:
return self.blockchain.rpc.get_blog_authors({'blog_account': account}, api='follow')['blog_authors']
except:
return self.blockchain.rpc.get_blog_authors(account, api='follow')
else:
return self.blockchain.rpc.get_blog_authors(account, api='follow')
return self.blockchain.rpc.get_blog_authors(account, api='condenser')
def get_follow_count(self, account=None):
""" get_follow_count """
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment