ecolabdata / ckanext-ecospheres

GNU Affero General Public License v3.0
3 stars 0 forks source link

Fix broken dataset filters #22

Closed streino closed 11 months ago

streino commented 1 year ago

Rewrote the broken dataset filters code. It's still slow when loading the page (I didn't touch the UI code) but filters now work.

One bit of code that didn't make sense:

q = search_params.get('q', '')
search_params['q'] = re.sub(":\s", " ", q)

It's a mystery to me why we'd want to do that :/ But I kept it (commented out) for now, in case we figure out a use case.