sdf
This commit is contained in:
parent
94caee257b
commit
51e9ee39ab
1 changed files with 5 additions and 1 deletions
|
@ -124,12 +124,16 @@ def notifications(v):
|
|||
listing = []
|
||||
for c in comments:
|
||||
if c.parent_submission:
|
||||
print(c.replies2)
|
||||
if not c.replies2:
|
||||
print('fuq')
|
||||
c.replies2 = c.child_comments.filter(Comment.author_id == v.id, Comment.id.in_(all)).all()
|
||||
cids.update(x.id for x in c.replies2)
|
||||
while c.parent_comment and (c.parent_comment.author_id == v.id or c.parent_comment in comments):
|
||||
c = c.parent_comment
|
||||
print(c.replies2)
|
||||
if not c.replies2:
|
||||
print('ni')
|
||||
c.replies2 = c.child_comments.filter(Comment.author_id == v.id, Comment.id.in_(all)).all()
|
||||
cids.update(x.id for x in c.replies2)
|
||||
cids.add(c.id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue