Fix typo in how we order search results
`.desc()` needs to be on the field
This commit is contained in:
parent
3b8feeba4c
commit
0440cca3ef
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