Skip to content

Commit

Permalink
Stick to the old filters structure format
Browse files Browse the repository at this point in the history
  • Loading branch information
krassowski committed Apr 28, 2019
1 parent 8a82209 commit a81a046
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion website/helpers/filters.py
Expand Up @@ -696,7 +696,11 @@ def _parse_request(self, request):
if args.get('clear_filters'):
filters_list = self._parse_fallback_query({})
elif args.get('fallback'):
filters_list = self._parse_fallback_query(args.to_dict(flat=False))
data = {
key: value[0] if isinstance(value, list) and len(value) == 1 else value
for key, value in args.to_dict(flat=False).items()
}
filters_list = self._parse_fallback_query(data)
else:
filters_list = self._parse_string(
args.get('filters', '')
Expand Down

0 comments on commit a81a046

Please sign in to comment.