Skip to content

Commit

Permalink
Fixes Discussions, when only one reply is returned
Browse files Browse the repository at this point in the history
  • Loading branch information
holgern committed Jul 17, 2018
1 parent 1f8c90c commit aa74d03
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions beem/discussions.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,20 +131,20 @@ def get_discussions(self, discussion_type, discussion_query, limit=1000):
for d in dd:
double_result = False
if discussion_type == "tags":
if rpc_query_count == 0 and (d["name"] == start_tag):
if query_count != 0 and rpc_query_count == 0 and (d["name"] == start_tag):
double_result = True
if len(dd) == 1:
found_more_than_start_entry = False
start_tag = d["name"]
elif discussion_type == "replies":
if rpc_query_count == 0 and (d["author"] == start_parent_author and d["permlink"] == start_permlink):
if query_count != 0 and rpc_query_count == 0 and (d["author"] == start_parent_author and d["permlink"] == start_permlink):
double_result = True
if len(dd) == 1:
found_more_than_start_entry = False
start_parent_author = d["author"]
start_permlink = d["permlink"]
else:
if rpc_query_count == 0 and (d["author"] == start_author and d["permlink"] == start_permlink):
if query_count != 0 and rpc_query_count == 0 and (d["author"] == start_author and d["permlink"] == start_permlink):
double_result = True
if len(dd) == 1:
found_more_than_start_entry = False
Expand Down

0 comments on commit aa74d03

Please sign in to comment.