Skip to content

Commit c6f8f5d

Browse files
StephDrivermauromsl
authored andcommitted
a11y: openlibhums#4839 full-text-search .count() rather than len()
1 parent f9453b9 commit c6f8f5d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/journal/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2253,7 +2253,7 @@ def full_text_search(request):
22532253

22542254
paginate_by = request.GET.get("paginate_by", 25)
22552255
if paginate_by == "all":
2256-
paginate_by = len(articles) if articles else 25
2256+
paginate_by = articles.count() if articles else 25
22572257

22582258
paginator = Paginator(articles, paginate_by)
22592259
page_number = request.GET.get("page")

0 commit comments

Comments
 (0)