fsd
This commit is contained in:
parent
414d3fcb95
commit
806180653c
1 changed files with 4 additions and 2 deletions
|
@ -374,13 +374,15 @@ def morecomments(v, cid):
|
|||
)
|
||||
|
||||
output = []
|
||||
output2 = []
|
||||
for c in comments.all():
|
||||
comment = c[0]
|
||||
comment.voted = c[1] or 0
|
||||
comment.is_blocking = c[2] or 0
|
||||
comment.is_blocked = c[3] or 0
|
||||
if c[0].parent_comment_id == int(cid): output.append(comment)
|
||||
comments = output
|
||||
output.append(comment)
|
||||
if c[0].parent_comment_id == int(cid): output2.append(comment)
|
||||
comments = output2
|
||||
else:
|
||||
c = g.db.query(Comment).filter_by(id=cid).first()
|
||||
comments = c.replies
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue