Merge pull request #257 from coreos-inc/bugfix

Fix string concats
This commit is contained in:
Jake Moshenko 2015-07-21 15:39:44 -04:00
commit 27dc08c969

View file

@ -27,7 +27,7 @@ def track_and_log(event_name, repo, **kwargs):
metadata['oauth_token_id'] = authenticated_oauth_token.id
metadata['oauth_token_application_id'] = authenticated_oauth_token.application.client_id
metadata['oauth_token_application'] = authenticated_oauth_token.application.name
analytics_id = 'oauth:' + authenticated_oauth_token.id
analytics_id = 'oauth:{0}'.format(authenticated_oauth_token.id)
elif authenticated_user:
metadata['username'] = authenticated_user.username
analytics_id = authenticated_user.username
@ -38,7 +38,7 @@ def track_and_log(event_name, repo, **kwargs):
if authenticated_token.kind:
metadata['token_type'] = authenticated_token.kind.name
analytics_id = 'token:' + authenticated_token.code
analytics_id = 'token:{0}'.format(authenticated_token.code)
else:
metadata['public'] = True
analytics_id = 'anonymous'