forked from rDrama/rDrama
1
0
Fork 0

put unread notifs first

master
Aevann 2023-03-19 20:05:53 +02:00
parent c93c7e81fa
commit f329433443
1 changed files with 1 additions and 1 deletions

View File

@ -317,7 +317,7 @@ def notifications(v:User):
Comment.deleted_utc == 0,
)
comments = comments.order_by(Notification.created_utc.desc())
comments = comments.order_by(Notification.read, Notification.created_utc.desc())
comments = comments.offset(PAGE_SIZE * (page - 1)).limit(PAGE_SIZE+1).all()
next_exists = (len(comments) > PAGE_SIZE)