Merge pull request #2925 from coreos-inc/fix-search-ordering
Fix typo in how we order search results
This commit is contained in:
commit
dfd736c4c5
1 changed files with 1 additions and 2 deletions
|
@ -513,8 +513,7 @@ def _get_sorted_matching_repositories(lookup_value, repo_kind='image', include_p
|
|||
.join(Namespace, on=(Namespace.id == Repository.namespace_user))
|
||||
.switch(Repository)
|
||||
.join(RepositorySearchScore)
|
||||
.order_by(RepositorySearchScore.score)
|
||||
.desc())
|
||||
.order_by(RepositorySearchScore.score.desc()))
|
||||
else:
|
||||
if search_fields is None:
|
||||
search_fields = set([SEARCH_FIELDS.description.name, SEARCH_FIELDS.name.name])
|
||||
|
|
Reference in a new issue