Skip to content
Browse files

fixed a bug when kwargs were used with get_user_connections. they are…

… not appended instead of being place before selectors
  • Loading branch information...
1 parent c791a9d commit 34e0f7ebccba26e53b18c52f4eab0d701239d48f philgo20 committed Jun 17, 2011
Showing with 4 additions and 7 deletions.
  1. +4 −7 liclient/__init__.py
View
11 liclient/__init__.py
@@ -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

0 comments on commit 34e0f7e

Please sign in to comment.
Something went wrong with that request. Please try again.