Skip to content

Commit

Permalink
Merge pull request #336 from lamby/strava-name-populate
Browse files Browse the repository at this point in the history
Strava name population fixes
  • Loading branch information
omab committed Aug 2, 2014
2 parents 2eba64f + 5a2d00e commit 7fc7562
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion social/backends/strava.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ def get_user_details(self, response):
username = response['athlete']['id']
email = response['athlete'].get('email', '')
fullname, first_name, last_name = self.get_user_names(
first_name=response['athlete'].get('first_name', '')
first_name=response['athlete'].get('firstname', ''),
last_name=response['athlete'].get('lastname', ''),
)
return {'username': str(username),
'fullname': fullname,
Expand Down

0 comments on commit 7fc7562

Please sign in to comment.