From 5195dde00ae959328e703c691bd0faddd3fe49e1 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 3 Apr 2022 21:02:46 +0200 Subject: [PATCH] dfs --- files/routes/front.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/files/routes/front.py b/files/routes/front.py index df4f35ee8a..d83a3bab4d 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -122,9 +122,7 @@ def notifications(v): x.voted = 1 if x not in c.replies2: c.replies2.append(x) - counter = 0 - while counter < 10 and c.parent_comment and (c.parent_comment.author_id == v.id or c.parent_comment in comments): - counter += 1 + if c.parent_comment and (c.parent_comment.author_id == v.id or c.parent_comment in comments): parent = c.parent_comment if parent.replies2 == None: parent.replies2 = [c] elif c not in parent.replies2: parent.replies2.append(c)