diff options
-rw-r--r-- | blenderkit/search.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/blenderkit/search.py b/blenderkit/search.py index b7239e38..6c1cc955 100644 --- a/blenderkit/search.py +++ b/blenderkit/search.py @@ -714,6 +714,13 @@ class Searcher(threading.Thread): if i < len(query) - 1: requeststring += '+' + # result ordering: _score - relevance, score - BlenderKit score + if query.get('category_subtree') is not None: + requeststring += '+order:_score,-score' + else: + requeststring += '+order:-score' + + requeststring += '&addon_version=%s' % params['addon_version'] if params.get('scene_uuid') is not None: requeststring += '&scene_uuid=%s' % params['scene_uuid'] |