mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-16 13:16:33 +00:00
Merge pull request #1577 from hughrun/sort-recent
sort shelves by latest shelved date
This commit is contained in:
commit
6ba605cbd0
1 changed files with 1 additions and 0 deletions
|
@ -224,6 +224,7 @@ def get_suggested_books(user, max_books=5):
|
|||
.filter(
|
||||
shelfbook__shelf=shelf,
|
||||
)
|
||||
.order_by("-shelfbook__shelved_date")
|
||||
.prefetch_related("authors")[:limit],
|
||||
}
|
||||
suggested_books.append(shelf_preview)
|
||||
|
|
Loading…
Reference in a new issue