Skip to content

Commit

Permalink
Remove data_dict['filters'] yo keep solr happy :(
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Nov 27, 2012
1 parent 3348be3 commit 073d3f7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ckan/logic/action/get.py
Expand Up @@ -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))
Expand Down

0 comments on commit 073d3f7

Please sign in to comment.