mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-06-05 23:38:53 +00:00
Issue-3187: fix failing tests
This commit is contained in:
parent
8e2649ba3b
commit
c4596544a3
1 changed files with 12 additions and 3 deletions
|
@ -52,9 +52,18 @@ class Feed(View):
|
||||||
paginated = Paginator(filtered_activities, PAGE_LENGTH)
|
paginated = Paginator(filtered_activities, PAGE_LENGTH)
|
||||||
|
|
||||||
suggestions = suggested_users.get_suggestions(request.user)
|
suggestions = suggested_users.get_suggestions(request.user)
|
||||||
cutoff = date(get_annual_summary_year(), 12, 31)
|
|
||||||
readthroughs = models.ReadThrough.objects.filter(
|
cutoff = (
|
||||||
user=request.user, finish_date__lte=cutoff
|
date(get_annual_summary_year(), 12, 31)
|
||||||
|
if get_annual_summary_year()
|
||||||
|
else None
|
||||||
|
)
|
||||||
|
readthroughs = (
|
||||||
|
models.ReadThrough.objects.filter(
|
||||||
|
user=request.user, finish_date__lte=cutoff
|
||||||
|
)
|
||||||
|
if get_annual_summary_year()
|
||||||
|
else []
|
||||||
)
|
)
|
||||||
|
|
||||||
data = {
|
data = {
|
||||||
|
|
Loading…
Reference in a new issue