Skip to content
Snippets Groups Projects
Commit 4b27c0d2 authored by chbaeh's avatar chbaeh
Browse files

fix assert

parent 2ccae920
Branches
Tags
No related merge requests found
...@@ -335,8 +335,8 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm ...@@ -335,8 +335,8 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm
def before_index(self, dict_pkg): def before_index(self, dict_pkg):
debug = config.get('ckanext.odsh.debug',False) debug = config.get('ckanext.odsh.debug',False)
slave = config.get('ckanext.odsh.slave',False) slave = config.get('ckanext.odsh.slave',False)
if debug and slave: assert not (debug and slave)
raise 'indexing on slave not allowed'
# make special date fields solr conform # make special date fields solr conform
fields = ["issued", "temporal_start", "temporal_end"] fields = ["issued", "temporal_start", "temporal_end"]
for field in fields: 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