mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-26 19:41:11 +00:00
Fixes active readthrough cache bug
This commit is contained in:
parent
0abfc67c12
commit
591bb955f8
1 changed files with 2 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue