Fixed bug with infinite looping to get parents
This commit is contained in:
parent
17a3cf0491
commit
ebb086ecb2
1 changed files with 1 additions and 0 deletions
|
@ -74,4 +74,5 @@ def get_full_replies(post_id):
|
|||
while get_parent(replies[-1]["_id"]):
|
||||
print(replies[-1])
|
||||
replies.append(get_parent(post_id))
|
||||
post_id = get_parent(post_id)['_id']
|
||||
return replies[::-1]
|
||||
|
|
Loading…
Add table
Reference in a new issue