Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#730] Make sure 'sort' is always in package_search's data_dict
If data_dict contained no 'sort', the default value was not being added if the data_dict did contain 'abort_search': True. The code nonetheless tries to access data_dict['sort'] later on and crashes. (Isn't this what schemas and validation are supposed to be for?) This was causing a test to fail. Adding the default 'sort' value to data_dict even if 'abort_search': True is there fixes it.
- Loading branch information