Skip to content

Commit

Permalink
Removed qa from index which was causing solr errors
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkCalvert committed Jan 31, 2024
1 parent 72a244b commit 0c899a4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ckanext/qa/plugin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,10 @@ def after_dataset_show(self, context, pkg_dict):
del qa_dict['package_id']
del qa_dict['resource_id']
res['qa'] = qa_dict

def before_dataset_index(self, pkg_dict):
'''
remove `qa` from index
'''
pkg_dict.pop('qa', None)
return pkg_dict

0 comments on commit 0c899a4

Please sign in to comment.