diff --git a/bookwyrm/views/shelf/shelf.py b/bookwyrm/views/shelf/shelf.py index 85d9e39f7..0662f302d 100644 --- a/bookwyrm/views/shelf/shelf.py +++ b/bookwyrm/views/shelf/shelf.py @@ -75,6 +75,7 @@ class Shelf(View): if shelf_identifier: books = books.annotate(shelved_date=F("shelfbook__shelved_date")) else: + # sorting by shelved date will cause duplicates in the "all books" view books = books.annotate(shelved_date=F("updated_date")) books = books.annotate( rating=Subquery(reviews.values("rating")[:1]),