Skip to content

Commit

Permalink
Result list needs sort to be always present
Browse files Browse the repository at this point in the history
  • Loading branch information
mesemus committed Nov 28, 2024
1 parent 0d6b10a commit e0b99a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions oarepo_global_search/services/records/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ def apply(self, identity, search, params):
search = search.post_filter(post_filter)
if params["json"].get("sort"):
search = search.sort(params["json"]["sort"][0])
if "sort" not in params:
params["sort"] = self.config.sort_default_no_query
return search
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

[metadata]
name = oarepo-global-search
version = 1.0.28
version = 1.0.29
description = "A model builder plugin for global search"
long_description = file: README.md
long_description_content_type = text/markdown
Expand Down

0 comments on commit e0b99a5

Please sign in to comment.