Skip to content
Snippets Groups Projects
Commit 2ccae920 authored by chbaeh's avatar chbaeh
Browse files

add debug flags for slave

parent 96f5680e
No related branches found
No related tags found
No related merge requests found
......@@ -333,6 +333,10 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm
def before_index(self, dict_pkg):
debug = config.get('ckanext.odsh.debug',False)
slave = config.get('ckanext.odsh.slave',False)
if debug and slave:
raise 'indexing on slave not allowed'
# make special date fields solr conform
fields = ["issued", "temporal_start", "temporal_end"]
for field in fields:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment