From c565f9aa0ff5fc32f94f3e5ec13d0350293b6605 Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Mon, 26 Aug 2024 18:36:50 -0700 Subject: [PATCH] Fixed bug in `gam print filelist ... countsrowfilter` --- docs/GamUpdates.md | 11 +++++++++ docs/How-to-Upgrade-from-Standard-GAM.md | 4 ++-- docs/Users-Drive-Files-Display.md | 15 ++++++++++++ docs/Version-and-Help.md | 12 +++++----- src/GamCommands.txt | 3 +++ src/GamUpdate.txt | 11 +++++++++ src/gam/__init__.py | 29 ++++++++++++++++-------- 7 files changed, 68 insertions(+), 17 deletions(-) diff --git a/docs/GamUpdates.md b/docs/GamUpdates.md index 6721a312..8faf9712 100644 --- a/docs/GamUpdates.md +++ b/docs/GamUpdates.md @@ -10,6 +10,17 @@ Add the `-s` option to the end of the above commands to suppress creating the `g See [Downloads-Installs](https://github.com/taers232c/GAMADV-XTD3/wiki/Downloads-Installs) for Windows or other options, including manual installation +### 6.80.15 + +Fixed bug in `gam print filelist ... countsrowfilter` that caused a trap. + +Added option `continueoninvalidquery []` to `gam print filelist|filecounts` that can be used +in special cases where a query of the form `query "'labels/mRoha85IbwCRl490E00xGLvBsSbkwIiuZ6PRNNEbwxyz' in labels" +causes Google to issue an error saying that the query is invalid when, in fact, it is but the user does not have a +license that suppprts drive file labels. When `continueoninvalidquery` is true, GAM prints an error message and +proceeds to the next user rather that terminating as it does now. Of course, if the query really is invalid, you will +get the message for every user. + ### 6.80.14 Updated `gam print messages|threads` to display all default headers diff --git a/docs/How-to-Upgrade-from-Standard-GAM.md b/docs/How-to-Upgrade-from-Standard-GAM.md index 483e65c6..d9c46311 100644 --- a/docs/How-to-Upgrade-from-Standard-GAM.md +++ b/docs/How-to-Upgrade-from-Standard-GAM.md @@ -251,7 +251,7 @@ writes the credentials into the file oauth2.txt. admin@server:/Users/admin$ rm -f /Users/admin/GAMConfig/oauth2.txt admin@server:/Users/admin$ gam version WARNING: Config File: /Users/admin/GAMConfig/gam.cfg, Section: DEFAULT, Item: oauth2_txt, Value: /Users/admin/GAMConfig/oauth2.txt, Not Found -GAMADV-XTD3 6.80.14 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource +GAMADV-XTD3 6.80.15 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource Ross Scroggs Python 3.12.5 64-bit final MacOS Sonoma 14.5 x86_64 @@ -923,7 +923,7 @@ writes the credentials into the file oauth2.txt. C:\>del C:\GAMConfig\oauth2.txt C:\>gam version WARNING: Config File: C:\GAMConfig\gam.cfg, Section: DEFAULT, Item: oauth2_txt, Value: C:\GAMConfig\oauth2.txt, Not Found -GAMADV-XTD3 6.80.14 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource +GAMADV-XTD3 6.80.15 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource Ross Scroggs Python 3.12.5 64-bit final Windows-10-10.0.17134 AMD64 diff --git a/docs/Users-Drive-Files-Display.md b/docs/Users-Drive-Files-Display.md index fd5d0283..b7406d79 100644 --- a/docs/Users-Drive-Files-Display.md +++ b/docs/Users-Drive-Files-Display.md @@ -684,6 +684,7 @@ Print or show file counts by MIME type and/or file name. gam print filecounts [todrive *] [((query ) | (fullquery ) | ) (querytime