From 721bda827f16e791791d20def2fab6dab6ef260e Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 23 Mar 2023 14:03:45 +0200 Subject: [PATCH] remove the sorting by unread (pretty confusing when u have multiple pages) --- files/routes/notifications.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/notifications.py b/files/routes/notifications.py index b420d4ebf..e8caa9bf6 100644 --- a/files/routes/notifications.py +++ b/files/routes/notifications.py @@ -317,7 +317,7 @@ def notifications(v:User): Comment.deleted_utc == 0, ) - comments = comments.order_by(Notification.read, Notification.created_utc.desc()) + comments = comments.order_by(Notification.created_utc.desc()) comments = comments.offset(PAGE_SIZE * (page - 1)).limit(PAGE_SIZE+1).all() next_exists = (len(comments) > PAGE_SIZE)