From 81367a60d1413adfc546b6bf0d829845604280cc Mon Sep 17 00:00:00 2001 From: Marek Marecki Date: Fri, 29 Mar 2013 11:40:01 +0100 Subject: [PATCH] get_user_info() refactored to use _sessionget() --- diaspy/client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/diaspy/client.py b/diaspy/client.py index d7f036b..abdd1d9 100644 --- a/diaspy/client.py +++ b/diaspy/client.py @@ -116,7 +116,8 @@ class Client: :returns: dict -- json formatted user info. """ - r = self.session.get('{0}/bookmarklet'.format(self.pod)) + #r = self.session.get('{0}/bookmarklet'.format(self.pod)) + r = self._sessionget('bookmarklet') regex = re.compile(r'window.current_user_attributes = ({.*})') userdata = json.loads(regex.search(r.text).group(1)) return userdata -- 2.25.1