fix /notifications

pull/146/head
Aevann 2023-05-06 00:57:43 +03:00
parent 241c45409e
commit 6890c3f2b1
1 changed files with 2 additions and 2 deletions

View File

@ -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,