From bc66560012607313aa03a85902aa037498688658 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 14 Nov 2021 04:24:51 +0200 Subject: [PATCH] fdsfds --- files/routes/front.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/files/routes/front.py b/files/routes/front.py index a9ef0e1823..e3c2e1023b 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -57,7 +57,7 @@ def notifications(v): else: notifications = v.notifications.join(Notification.comment).filter(Comment.author_id != AUTOJANNY_ACCOUNT).order_by(Notification.id.desc()).offset(25 * (page - 1)).limit(101).all() - listing = [] + comments = [] for index, x in enumerate(notifications[:100]): c = x.comment @@ -66,11 +66,10 @@ def notifications(v): x.read = True c.unread = True g.db.add(x) - listing.append(c.id) + comments.append(c) g.db.commit() - comments = get_comments(listing, v=v, load_parent=True) next_exists = (len(notifications) > len(comments)) if not posts: