summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur She <arthur.she@linaro.org>2023-05-05 22:02:02 -0700
committerArthur She <arthur.she@linaro.org>2023-05-05 22:02:02 -0700
commitfef8432f9428aea9cdf0d0a660784c488259034f (patch)
tree690a8457cc603a7c3d63c9240cbab51a1020ba9c
parentd1842597a367e85dca6ba9c1afeba86f5a554934 (diff)
Reduce new worksheet cell number.HEADmaster
The cell number limit of Google spreadsheet is 10M Signed-off-by: Arthur She <arthur.she@linaro.org>
-rwxr-xr-xdraw-timestamp-chart.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/draw-timestamp-chart.py b/draw-timestamp-chart.py
index ef253e9..09a1e65 100755
--- a/draw-timestamp-chart.py
+++ b/draw-timestamp-chart.py
@@ -43,8 +43,9 @@ row_formats = []
def create_worksheet(spreadsheet, job_name):
# Add a new worksheet
try:
- worksheet = spreadsheet.add_worksheet(job_name, 190, 500)
- except:
+ worksheet = spreadsheet.add_worksheet(job_name, 210, 60)
+ except Exception as X:
+ print(X)
print(f"worksheet {job_name} is already exist")
sys.exit(1)
worksheet.freeze(rows=1, cols=1)