Skip to content

Commit 78d5956

Browse files
committed
Add helper function to return search_row_max
1 parent 3c8511b commit 78d5956

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ckanext/dataexplorer/plugin.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
natural_number_validator = p.toolkit.get_validator('natural_number_validator')
1313
Invalid = p.toolkit.Invalid
1414

15+
def get_datastore_search_rows_max():
16+
return config.get('ckan.datastore_search_rows_max', 0)
17+
1518

1619
def get_mapview_config():
1720
'''
@@ -97,7 +100,9 @@ def view_template(self, context, data_dict):
97100

98101
def get_helpers(self):
99102
return {
100-
'get_map_config': get_mapview_config
103+
'get_map_config': get_mapview_config,
104+
'get_datastore_search_rows_max': get_datastore_search_rows_max,
105+
101106
}
102107

103108

0 commit comments

Comments
 (0)