Fix string concats

Issue found here: https://app.getsentry.com/quayio/production/group/72831901/
This commit is contained in:
Joseph Schorr 2015-07-21 15:04:50 -04:00
parent ea574cf689
commit 60b05a0493

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:%s' % 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:%s' % authenticated_token.code
else:
metadata['public'] = True
analytics_id = 'anonymous'