mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-27 12:01:14 +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):
|
def latest_read_through(book, user):
|
||||||
"""the most recent read activity"""
|
"""the most recent read activity"""
|
||||||
return (
|
return (
|
||||||
models.ReadThrough.objects.filter(user=user, book=book)
|
models.ReadThrough.objects.filter(user=user, book=book, is_active=True)
|
||||||
.order_by("-start_date")
|
.order_by("-start_date")
|
||||||
.first()
|
.first()
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue