Skip to content

Commit

Permalink
Merge pull request #504 from Engerrs/broken-pagination-on-dataset-lis…
Browse files Browse the repository at this point in the history
…t-page

Fix pagination for Dataset list on source page
  • Loading branch information
smotornyuk authored Jun 2, 2022
2 parents b79d68c + d9a99ea commit 2560315
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ckanext/harvest/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ def package_list_for_source(source_id):

query = logic.get_action('package_search')(context, search_dict)

base_url = h.url_for('{0}_read'.format(DATASET_TYPE_NAME), id=source_id)
base_url = h.url_for(
'{0}_read'.format(DATASET_TYPE_NAME),
id=harvest_source['name']
)

def pager_url(q=None, page=None):
url = base_url
Expand Down

0 comments on commit 2560315

Please sign in to comment.