Skip to content

Commit

Permalink
[fix][xs]: change check_rows division to result in integer
Browse files Browse the repository at this point in the history
  • Loading branch information
mpolidori committed Dec 6, 2019
1 parent fad6302 commit 5260164
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/opendatani/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down

0 comments on commit 5260164

Please sign in to comment.