Fix Page issue

Fixes the error generated when trying to select a different page.
This commit is contained in:
HilariousGil 2017-06-14 11:13:20 +02:00 committed by GitHub
parent 91f2bed107
commit 86d8ca067c
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ class RatingPackageController(PackageController):
def search(self): def search(self):
cur_page = request.params.get('page') cur_page = request.params.get('page')
if cur_page is not None: 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: else:
c.current_page = 1 c.current_page = 1
c.pkg_type = 'dataset' c.pkg_type = 'dataset'