From acd7a40fe64de66b8af08a37f6fa68c799412943 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Fri, 5 Jan 2018 16:40:54 +0100 Subject: [PATCH] =?UTF-8?q?Renamed=20do=5Fsearch=20=E2=86=92=20do=5Fnode?= =?UTF-8?q?=5Fsearch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pillar/api/search/queries.py | 2 +- pillar/api/search/routes.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pillar/api/search/queries.py b/pillar/api/search/queries.py index 6ece0114..9a304025 100644 --- a/pillar/api/search/queries.py +++ b/pillar/api/search/queries.py @@ -48,7 +48,7 @@ def nested_bool(must: list, should: list, terms: dict) -> Search: return search -def do_search(query: str, terms: dict) -> dict: +def do_node_search(query: str, terms: dict) -> dict: """ Given user query input and term refinements search for public published nodes diff --git a/pillar/api/search/routes.py b/pillar/api/search/routes.py index 19a8cd1e..5c91b5df 100644 --- a/pillar/api/search/routes.py +++ b/pillar/api/search/routes.py @@ -39,7 +39,7 @@ def _term_filters() -> dict: def search_nodes(): searchword = _valid_search() terms = _term_filters() - data = queries.do_search(searchword, terms) + data = queries.do_node_search(searchword, terms) return jsonify(data)