forked from MarseyWorld/MarseyWorld
remove the sorting by unread (pretty confusing when u have multiple pages)
parent
51e8122b19
commit
721bda827f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue