From 4a3bf1d92dd914d261d5e9495af52fec411da9cc Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Wed, 22 Sep 2021 11:59:51 -0700 Subject: [PATCH] Updates active readthrough templatetag --- bookwyrm/templatetags/bookwyrm_tags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookwyrm/templatetags/bookwyrm_tags.py b/bookwyrm/templatetags/bookwyrm_tags.py index e00a8331..1c915157 100644 --- a/bookwyrm/templatetags/bookwyrm_tags.py +++ b/bookwyrm/templatetags/bookwyrm_tags.py @@ -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() )