From 4ed8497bd782969cdb1b2723590a089890b0ed5b Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Wed, 22 Mar 2017 12:45:20 -0700 Subject: [PATCH] Minor fixes to showReport (#452) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix create project to handle Google change * Handle newlines in app name Don’t output name/value for name == u'accounts:authorized_apps’, apps are listed later --- src/gam.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gam.py b/src/gam.py index 1c3d497e..75b48396 100755 --- a/src/gam.py +++ b/src/gam.py @@ -991,12 +991,13 @@ def showReport(): app = {} for an_item in subitem: if an_item == u'client_name': - app[u'name'] = u'App: %s' % subitem[an_item] + app[u'name'] = u'App: %s' % subitem[an_item].replace(u'\n', u'\\n') elif an_item == u'num_users': app[u'value'] = u'%s users' % subitem[an_item] elif an_item == u'client_id': app[u'client_id'] = subitem[an_item] auth_apps.append(app) + continue else: values = [] for subitem in item[u'msgValue']: