dfs
This commit is contained in:
parent
d648f3dfde
commit
bff6ba9bc9
1 changed files with 1 additions and 1 deletions
|
@ -137,7 +137,7 @@ def notifications(v):
|
|||
for x in c.replies2:
|
||||
x.replies2 = x.child_comments.filter(or_(Comment.author_id == v.id, Comment.id.in_(all))).all()
|
||||
cids.update(y.id for y in x.replies2)
|
||||
while c.parent_comment and (c.parent_comment.author_id == v.id or c.parent_comment in comments):
|
||||
while c.parent_comment and (c.parent_comment.author_id == v.id or c.parent_comment.id in all):
|
||||
c = c.parent_comment
|
||||
if c.replies2 == None:
|
||||
c.replies2 = c.child_comments.filter(or_(Comment.author_id == v.id, Comment.id.in_(all))).all()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue