From 591bb955f856575926f607ab85d4428d12724af2 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Tue, 11 Jan 2022 12:37:07 -0800 Subject: [PATCH] Fixes active readthrough cache bug --- bookwyrm/templatetags/bookwyrm_tags.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bookwyrm/templatetags/bookwyrm_tags.py b/bookwyrm/templatetags/bookwyrm_tags.py index 3c57fb27b..653002134 100644 --- a/bookwyrm/templatetags/bookwyrm_tags.py +++ b/bookwyrm/templatetags/bookwyrm_tags.py @@ -139,12 +139,11 @@ def active_shelf(context, book): shelf__user=u, book__parent_work__editions=b, ).first() - ) - or {"book": book}, + ), user, book, timeout=15552000, - ) + ) or {"book": book} @register.simple_tag(takes_context=False)