From 86d8ca067cdf0125ce8fc51e9c274f9c1997c5ff Mon Sep 17 00:00:00 2001 From: HilariousGil Date: Wed, 14 Jun 2017 11:13:20 +0200 Subject: [PATCH] Fix Page issue Fixes the error generated when trying to select a different page. --- ckanext/rating/controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ckanext/rating/controller.py b/ckanext/rating/controller.py index bd84135..2f4e59f 100644 --- a/ckanext/rating/controller.py +++ b/ckanext/rating/controller.py @@ -49,7 +49,7 @@ class RatingPackageController(PackageController): def search(self): cur_page = request.params.get('page') if cur_page is not None: - c.current_page = self._get_page_number(request.params) + c.current_page = h.get_page_number(request.params) else: c.current_page = 1 c.pkg_type = 'dataset'