From 073d3f746427fc2183c89e6a2b0d0c677af90c3b Mon Sep 17 00:00:00 2001 From: tobes Date: Tue, 27 Nov 2012 00:30:47 +0000 Subject: [PATCH] Remove data_dict['filters'] yo keep solr happy :( --- ckan/logic/action/get.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ckan/logic/action/get.py b/ckan/logic/action/get.py index bfc404bf200..0a8444c5046 100644 --- a/ckan/logic/action/get.py +++ b/ckan/logic/action/get.py @@ -1138,7 +1138,10 @@ def package_search(context, data_dict): fq = data_dict.get('fq','') # filters get converted to solr query params - filters = data_dict.get('filters', {}) + # FIXME we are destructively removing dat_dict['filters'] so it is + # no longer availbale. Is this what we want. We do it to keep SOLR + # happy. + filters = data_dict.pop('filters', {}) for filter_name, filter_value_list in filters.iteritems(): for filter_value in filter_value_list: fq += ' %s:"%s"' % (filter_name, urllib.unquote(filter_value))