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 = []
|
output = []
|
||||||
|
output2 = []
|
||||||
for c in comments.all():
|
for c in comments.all():
|
||||||
comment = c[0]
|
comment = c[0]
|
||||||
comment.voted = c[1] or 0
|
comment.voted = c[1] or 0
|
||||||
comment.is_blocking = c[2] or 0
|
comment.is_blocking = c[2] or 0
|
||||||
comment.is_blocked = c[3] or 0
|
comment.is_blocked = c[3] or 0
|
||||||
if c[0].parent_comment_id == int(cid): output.append(comment)
|
output.append(comment)
|
||||||
comments = output
|
if c[0].parent_comment_id == int(cid): output2.append(comment)
|
||||||
|
comments = output2
|
||||||
else:
|
else:
|
||||||
c = g.db.query(Comment).filter_by(id=cid).first()
|
c = g.db.query(Comment).filter_by(id=cid).first()
|
||||||
comments = c.replies
|
comments = c.replies
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue