mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-26 11:31:08 +00:00
Merge pull request #1126 from bookwyrm-social/deleted-ratings
Don't show deleted ratings in stars
This commit is contained in:
commit
c9b337348e
2 changed files with 2 additions and 0 deletions
|
@ -25,6 +25,7 @@ def get_user_rating(book, user):
|
|||
user=user,
|
||||
book=book,
|
||||
rating__isnull=False,
|
||||
deleted=False,
|
||||
)
|
||||
.order_by("-published_date")
|
||||
.first()
|
||||
|
|
|
@ -62,6 +62,7 @@ class Shelf(View):
|
|||
user=user,
|
||||
rating__isnull=False,
|
||||
book__id=OuterRef("id"),
|
||||
deleted=False,
|
||||
).order_by("-published_date")
|
||||
|
||||
if not is_self:
|
||||
|
|
Loading…
Reference in a new issue