Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions seeker/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,16 +315,14 @@ def normalized_querystring(self, qs=None, ignore=None):
for key in sorted(data):
if ignore and key in ignore:
continue
if not data[key]:
if not data.getlist(key) or not any(data.getlist(key)):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we put "values = data.getlist(key)" above this and just do the "any" check?

continue
if key == 'p' and data[key] == '1':
continue
values = data.getlist(key)
# Make sure display/facet/sort fields maintain their order. Everything else can be sorted alphabetically for consistency.
if key not in ('d', 'f', 's'):
values = sorted(values)
parts.extend(urlencode({key: val}) for val in values)
return '&'.join(parts)
pass

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this here for?


def get_field_label(self, field_name):
"""
Expand Down