Skip to content
Snippets Groups Projects
Commit 575800dc authored by Thorge Petersen's avatar Thorge Petersen
Browse files

Clear qa property from package dict before indexing dataset

parent f2f2db73
No related branches found
No related tags found
1 merge request!50Upgraded to CKAN 2.10
...@@ -116,6 +116,7 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm ...@@ -116,6 +116,7 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm
def after_map(self, map): def after_map(self, map):
return map return map
def package_types(self): def package_types(self):
# This plugin doesn't handle any special package types, it just # This plugin doesn't handle any special package types, it just
# registers itself as the default (above). # registers itself as the default (above).
...@@ -299,6 +300,9 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm ...@@ -299,6 +300,9 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm
self.map_qa_score(dict_pkg) self.map_qa_score(dict_pkg)
if 'qa' in dict_pkg:
dict_pkg.pop('qa')
return dict_pkg return dict_pkg
# Add the custom parameters to Solr's facet queries # Add the custom parameters to Solr's facet queries
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment