mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-23 18:11:09 +00:00
Updates active readthrough templatetag
This commit is contained in:
parent
a05ef1a222
commit
4a3bf1d92d
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ def active_shelf(context, book):
|
|||
def latest_read_through(book, user):
|
||||
"""the most recent read activity"""
|
||||
return (
|
||||
models.ReadThrough.objects.filter(user=user, book=book)
|
||||
models.ReadThrough.objects.filter(user=user, book=book, is_active=True)
|
||||
.order_by("-start_date")
|
||||
.first()
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue