Skip to content

Commit

Permalink
[#1461] remove repeated sort code in package_search
Browse files Browse the repository at this point in the history
  • Loading branch information
joetsoi committed Jan 27, 2014
1 parent bb70fc5 commit 9fdb695
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions ckan/logic/action/get.py
Expand Up @@ -1448,9 +1448,6 @@ def package_search(context, data_dict):
# the query
abort = data_dict.get('abort_search', False)

if data_dict.get('sort') in (None, 'rank'):
data_dict['sort'] = 'score desc, metadata_modified desc'

if data_dict.get('sort') in (None, 'rank'):
data_dict['sort'] = 'score desc, metadata_modified desc'

Expand Down

0 comments on commit 9fdb695

Please sign in to comment.