diff --git a/orp/orp_search/public_gateway.py b/orp/orp_search/public_gateway.py index d1da0bb..82293f5 100644 --- a/orp/orp_search/public_gateway.py +++ b/orp/orp_search/public_gateway.py @@ -65,13 +65,13 @@ def paginate_results( """ paginator = Paginator(results, config.limit) try: - paginated_reports = paginator.page(config.offset) + paginated_documents = paginator.page(config.offset) except InvalidPage: - paginated_reports = paginator.page(1) + paginated_documents = paginator.page(1) context["is_paginated"] = paginator.num_pages > 1 - context["reports"] = paginated_reports + context["documents"] = paginated_documents context["paginator"] = paginator - context["page_obj"] = paginated_reports + context["page_obj"] = paginated_documents return context, paginator def calculate_total_pages(self, config, results_count):