This commit is contained in:
Jay Lee
2022-09-15 14:46:53 +00:00
2 changed files with 4 additions and 3 deletions

View File

@@ -339,10 +339,10 @@ def get_all_pages(service,
else:
kwargs.update(page_key)
if GC_Values[GC_LOW_MEMORY]:
kwargs = {}
td_args = {'prefix': 'GAM-'}
if sys.version_info.minor >= 10:
kwargs['ignore_cleanup_errors'] = True
tempdir = TemporaryDirectory(prefix='GAM-', **kwargs)
td_args['ignore_cleanup_errors'] = True
tempdir = TemporaryDirectory(**td_args)
tempfile = os.path.join(tempdir.name, 'gapi_pages')
all_items = shelve.open(tempfile)
# attach tempdir to all_items so we

View File

@@ -426,6 +426,7 @@ def showReport():
titles = ['name', 'value', 'client_id']
csvRows = []
auth_apps = list()
usage = list(usage)
for item in usage[0]['parameters']:
if 'name' not in item:
continue