From: Marek Marecki Date: Sun, 7 Jul 2013 08:52:24 +0000 (+0200) Subject: Fixed bug in `Search().lookup_user()` now it's `self._connection.get()` X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=eb61cedadc8efc9ed27775d153ec96e7fa441f37;p=diaspy.git Fixed bug in `Search().lookup_user()` now it's `self._connection.get()` instead of `self.get()` --- 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