okfn / ckanclient-deprecated

DEPRECATED - please see https://github.com/ckan/ckanapi. [Python client library for CKAN]
http://pypi.python.org/pypi/ckanclient
25 stars 17 forks source link

Page count in generator for package_search is incorrect #13

Closed rossjones closed 11 years ago

rossjones commented 11 years ago

The page count calculation in package_search is incorrect and should probably just be

page_count = (len(records) + size_of_page - 1) / size_of_page;

davidread commented 11 years ago

Done in [master a2dc174]