Skip to content

Commit

Permalink
Convert value from config to int before using
Browse files Browse the repository at this point in the history
  • Loading branch information
bellisk committed Aug 15, 2022
1 parent 294e71f commit 4bc9ef0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ckanext/showcase/logic/action/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ def showcase_package_list(context, data_dict):
raise toolkit.ValidationError(errors)

# Todo: Add separate config option for this instead of reusing this one.
limit = data_dict.get('limit', toolkit.config.get('ckan.datasets_per_page', 20))
limit = data_dict.get(
'limit', int(toolkit.config.get('ckan.datasets_per_page', 20)))
offset = data_dict.get('offset', 0)

# get a list of package ids associated with showcase id
Expand Down

0 comments on commit 4bc9ef0

Please sign in to comment.