From 81b6d811db0759ecdf9530402f93edd5c32ae18a Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 4 Apr 2022 01:38:44 +0200 Subject: [PATCH] dfs --- files/routes/front.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/front.py b/files/routes/front.py index c1800ede3f..c23bc722af 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -125,6 +125,7 @@ def notifications(v): for c in comments: if c.parent_submission: c.replies2 = [x for x in c.child_comments if c.author_id == v.id or x.id in all] + if c.id == 1661969: print(c.replies2) cids = cids | set(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 @@ -138,7 +139,6 @@ def notifications(v): if c not in listing: listing.append(c) - print(cids) comms = get_comments(list(cids), v=v) if request.headers.get("Authorization"): return {"data":[x.json for x in listing]}