From 50ac49c713b7873dd46e2b4b149374638d85939b Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Thu, 15 Aug 2024 10:36:47 -0700 Subject: [PATCH] Fix f-string typo --- docs/GamUpdates.md | 2 +- docs/Todrive.md | 4 +++- src/gam/__init__.py | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/GamUpdates.md b/docs/GamUpdates.md index 2f774820..5341c6ee 100644 --- a/docs/GamUpdates.md +++ b/docs/GamUpdates.md @@ -13,7 +13,7 @@ See [Downloads-Installs](https://github.com/taers232c/GAMADV-XTD3/wiki/Downloads ### 6.80.06 Added option `tdreturnidonly []` to `` that when true (the default), causes GAM to display -only the uploaded file ID to stdout. This can be captured and used in subsequent commands, `tdfileid ` that will update the same file. +only the uploaded file ID to stdout. This can be captured and used in subsequent commands, `tdfileid ` that will update the same file. ### 6.80.05 diff --git a/docs/Todrive.md b/docs/Todrive.md index 104fe6bb..06c6407c 100644 --- a/docs/Todrive.md +++ b/docs/Todrive.md @@ -239,9 +239,11 @@ If `tdfileid ` is not specified, a new file is created. * `tdcellwrap clip|overflow|wrap` - The Spreadsheet cell wrapping strategy. * `tdcellnumberformat text|number` - The Spreadsheet number format. -## Report action +## Report action, capture file ID * `tdreturnidonly` - If False, a message is written to stdout with the uploaded file URL; if True, only the uploaded file ID is written to stdout +The ID can be captured and used in subsequent commands, `tdfileid ` that will update the same file. + ## Open browser and send email * `tdnobrowser` - If False, a browser is opened to view the file uploaded to Google Drive; if not specified, the `todrive_nobrowser` value from gam.cfg is used. If True, no browser is opened. * `tdnoemail` - If False, an email is sent to `tduser` informing them of name and URL of the uploaded file; if not specified, the `todrive_noemail` value from gam.cfg is used. If True, no email is sent to `tduser`. diff --git a/src/gam/__init__.py b/src/gam/__init__.py index 7a91001f..10f40a4d 100755 --- a/src/gam/__init__.py +++ b/src/gam/__init__.py @@ -8781,7 +8781,7 @@ class CSVPrintFile(): printKeyValueList([msg_txt]) else: if self.todrive['fileId']: - writeStdout(f'{self.todrive['fileId']}\n') + writeStdout(f'{self.todrive["fileId"]}\n') else: writeStdout(f'{spreadsheetId}\n') if not self.todrive['subject']: