Skip to content

Commit

Permalink
fixed a bug when kwargs were used with get_user_connections. they are…
Browse files Browse the repository at this point in the history
… not appended instead of being place before selectors
  • Loading branch information
philgo20 committed Jun 17, 2011
1 parent c791a9d commit 34e0f7e
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions liclient/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,11 @@ def get_user_connections(self, access_token, selectors=None, **kwargs):
are automatically converted from integer to string for URL formatting
if necessary.
"""

user_token, url = self.prepare_request(access_token, self.api_profile_connections_url, kwargs)
if selectors:
url = self.prepare_field_selectors(selectors, self.api_profile_connections_url)
user_token, url = self.prepare_request(access_token, url, kwargs)
client = oauth.Client(self.consumer, user_token)
if not selectors:
resp, content = client.request(url, 'GET')
else:
url = self.prepare_field_selectors(selectors, url)
resp, content = client.request(url, 'GET')
resp, content = client.request(url, 'GET')
content = self.clean_dates(content)
return LinkedInXMLParser(content).results

Expand Down

0 comments on commit 34e0f7e

Please sign in to comment.