forked from mirrors/bookwyrm
Adds comment
This commit is contained in:
parent
73d6dbab4c
commit
5313b283dd
1 changed files with 1 additions and 0 deletions
|
@ -75,6 +75,7 @@ class Shelf(View):
|
||||||
if shelf_identifier:
|
if shelf_identifier:
|
||||||
books = books.annotate(shelved_date=F("shelfbook__shelved_date"))
|
books = books.annotate(shelved_date=F("shelfbook__shelved_date"))
|
||||||
else:
|
else:
|
||||||
|
# sorting by shelved date will cause duplicates in the "all books" view
|
||||||
books = books.annotate(shelved_date=F("updated_date"))
|
books = books.annotate(shelved_date=F("updated_date"))
|
||||||
books = books.annotate(
|
books = books.annotate(
|
||||||
rating=Subquery(reviews.values("rating")[:1]),
|
rating=Subquery(reviews.values("rating")[:1]),
|
||||||
|
|
Loading…
Reference in a new issue