mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 20:31:35 +00:00
Merge branch 'main' of https://github.com/GAM-team/GAM
This commit is contained in:
@@ -339,10 +339,10 @@ def get_all_pages(service,
|
|||||||
else:
|
else:
|
||||||
kwargs.update(page_key)
|
kwargs.update(page_key)
|
||||||
if GC_Values[GC_LOW_MEMORY]:
|
if GC_Values[GC_LOW_MEMORY]:
|
||||||
kwargs = {}
|
td_args = {'prefix': 'GAM-'}
|
||||||
if sys.version_info.minor >= 10:
|
if sys.version_info.minor >= 10:
|
||||||
kwargs['ignore_cleanup_errors'] = True
|
td_args['ignore_cleanup_errors'] = True
|
||||||
tempdir = TemporaryDirectory(prefix='GAM-', **kwargs)
|
tempdir = TemporaryDirectory(**td_args)
|
||||||
tempfile = os.path.join(tempdir.name, 'gapi_pages')
|
tempfile = os.path.join(tempdir.name, 'gapi_pages')
|
||||||
all_items = shelve.open(tempfile)
|
all_items = shelve.open(tempfile)
|
||||||
# attach tempdir to all_items so we
|
# attach tempdir to all_items so we
|
||||||
|
|||||||
@@ -426,6 +426,7 @@ def showReport():
|
|||||||
titles = ['name', 'value', 'client_id']
|
titles = ['name', 'value', 'client_id']
|
||||||
csvRows = []
|
csvRows = []
|
||||||
auth_apps = list()
|
auth_apps = list()
|
||||||
|
usage = list(usage)
|
||||||
for item in usage[0]['parameters']:
|
for item in usage[0]['parameters']:
|
||||||
if 'name' not in item:
|
if 'name' not in item:
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user