forked from mirrors/bookwyrm
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,
|
shelf__user=u,
|
||||||
book__parent_work__editions=b,
|
book__parent_work__editions=b,
|
||||||
).first()
|
).first()
|
||||||
)
|
),
|
||||||
or {"book": book},
|
|
||||||
user,
|
user,
|
||||||
book,
|
book,
|
||||||
timeout=15552000,
|
timeout=15552000,
|
||||||
)
|
) or {"book": book}
|
||||||
|
|
||||||
|
|
||||||
@register.simple_tag(takes_context=False)
|
@register.simple_tag(takes_context=False)
|
||||||
|
|
Loading…
Reference in a new issue