From 52601649e114340b24c7d69d88874ebb965e1cf9 Mon Sep 17 00:00:00 2001 From: Michael Polidori Date: Fri, 6 Dec 2019 09:58:46 -0500 Subject: [PATCH] [fix][xs]: change check_rows division to result in integer --- ckanext/opendatani/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ckanext/opendatani/plugin.py b/ckanext/opendatani/plugin.py index 4fdd8f8..95efb66 100644 --- a/ckanext/opendatani/plugin.py +++ b/ckanext/opendatani/plugin.py @@ -197,7 +197,7 @@ def report_resources_by_organization(context, data_dict): # We need this in the case that there are more # rows than the API hard limit of 1000 def check_rows(results, data_dict, rows): - for i in range(rows / 1000): + for i in range(rows // 1000): data_dict['start'] += 1000 results['results'] += \ toolkit.get_action('package_search')({}, data_dict)['results']