Merge pull request #2925 from coreos-inc/fix-search-ordering

Fix typo in how we order search results
This commit is contained in:
josephschorr 2017-11-30 22:01:42 +02:00 committed by GitHub
commit dfd736c4c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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])