Skip to content
Snippets Groups Projects
Commit aa74d03a authored by Holger's avatar Holger
Browse files

Fixes Discussions, when only one reply is returned

parent 1f8c90c4
No related branches found
No related tags found
No related merge requests found
...@@ -131,20 +131,20 @@ class Discussions(object): ...@@ -131,20 +131,20 @@ class Discussions(object):
for d in dd: for d in dd:
double_result = False double_result = False
if discussion_type == "tags": 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 double_result = True
if len(dd) == 1: if len(dd) == 1:
found_more_than_start_entry = False found_more_than_start_entry = False
start_tag = d["name"] start_tag = d["name"]
elif discussion_type == "replies": 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 double_result = True
if len(dd) == 1: if len(dd) == 1:
found_more_than_start_entry = False found_more_than_start_entry = False
start_parent_author = d["author"] start_parent_author = d["author"]
start_permlink = d["permlink"] start_permlink = d["permlink"]
else: 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 double_result = True
if len(dd) == 1: if len(dd) == 1:
found_more_than_start_entry = False found_more_than_start_entry = False
......
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