Skip to content

Commit

Permalink
Remove reference to is_flask_request()
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathansberry committed Dec 17, 2024
1 parent 486cbb3 commit 5004f8b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ckanext/dms/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ def get_facet_items_dict(
for facet_item in search_facets.get(facet)['items']:
if not len(facet_item['name'].strip()):
continue
params_items = request.params.items(multi=True) \
if is_flask_request() else request.params.items()
params_items = request.params.items(multi=True)
if not (facet, facet_item['name']) in params_items:
facets.append(dict(active=False, **facet_item))
elif not exclude_active:
Expand Down

0 comments on commit 5004f8b

Please sign in to comment.