From 6890c3f2b19e8e6513d67f67ff3c2d0bf32c230a Mon Sep 17 00:00:00 2001 From: Aevann Date: Sat, 6 May 2023 00:57:43 +0300 Subject: [PATCH] fix /notifications --- files/routes/notifications.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/notifications.py b/files/routes/notifications.py index 422ce916e..d6f88d5ba 100644 --- a/files/routes/notifications.py +++ b/files/routes/notifications.py @@ -323,7 +323,7 @@ def notifications(v:User): Comment.deleted_utc == 0, ) - total = comments.count() + total_count = comments.count() comments = comments.order_by(Notification.created_utc.desc(), Comment.id.desc()) comments = comments.offset(PAGE_SIZE * (page - 1)).limit(PAGE_SIZE).all() @@ -413,7 +413,7 @@ def notifications(v:User): return render_template("notifications.html", v=v, notifications=listing, - total=total, + total=total_count, page=page, standalone=True, render_replies=True,