From eb61cedadc8efc9ed27775d153ec96e7fa441f37 Mon Sep 17 00:00:00 2001 From: Marek Marecki Date: Sun, 7 Jul 2013 10:52:24 +0200 Subject: [PATCH] Fixed bug in `Search().lookup_user()` now it's `self._connection.get()` instead of `self.get()` --- diaspy/search.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/diaspy/search.py b/diaspy/search.py index 6da1beb..3fd0d08 100644 --- a/diaspy/search.py +++ b/diaspy/search.py @@ -17,5 +17,13 @@ class Search(): :param string: Handle to search for. """ - request = self.get('people', headers={'accept': 'text/html'}, params={'q': handle}) + request = self._connection.get('people', headers={'accept': 'text/html'}, params={'q': handle}) return request.status_code + + def _query(self, query): + """Sends search query to pod. + + :param query: search query + :type query: str + """ + pass -- 2.25.1