From 5e102b3bbafecc3968a42dc8abfcc0895d0a064e Mon Sep 17 00:00:00 2001 From: Dany Sluijk Date: Fri, 13 Dec 2024 12:12:56 +0100 Subject: [PATCH] feat: increase the amount of search results to show --- ldb/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ldb/views.py b/ldb/views.py index a50a722..9ce50e8 100644 --- a/ldb/views.py +++ b/ldb/views.py @@ -55,7 +55,7 @@ def get_results(self): organization_qs = Organization.objects.filter(organization_filters) count = person_qs.count() + organization_qs.count() - return list(chain(person_qs[:10], organization_qs[:10])), count + return list(chain(person_qs[:30], organization_qs[:30])), count return [] def get_context_data(self, **kwargs): @@ -65,7 +65,7 @@ def get_context_data(self, **kwargs): { "results": results, "count": count, - "remainder": count - 20, + "remainder": count - 60, } ) return context