Skip to content

Commit

Permalink
Fix filters dict access in query API
Browse files Browse the repository at this point in the history
  • Loading branch information
oryx1729 committed Aug 20, 2021
1 parent b775807 commit b5264c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rest_api/controller/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def _process_request(pipeline, request) -> Response:
start_time = time.time()

params = request.params or {}
params["filters"] = params["filters"] or {}
params["filters"] = params.get("filters", {})
filters = {}
if "filters" in params: # put filter values into a list and remove filters with null value
for key, values in params["filters"].items():
Expand Down

0 comments on commit b5264c0

Please sign in to comment.