From e5d19268b406cb4bc6172a2b5d7e3aeef97c4963 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 4 Apr 2022 01:47:28 +0200 Subject: [PATCH] sdf --- files/routes/front.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/files/routes/front.py b/files/routes/front.py index b448f541c..3d4ddaf02 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -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 - if not c.replies2: + 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)