From 20005407e46c9c637ebb1ad6c5345e82d27593f1 Mon Sep 17 00:00:00 2001 From: alifeee Date: Fri, 8 Mar 2024 18:35:21 +0000 Subject: [PATCH 1/2] update readme examples --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 87cb05fb1..482d093f9 100644 --- a/README.md +++ b/README.md @@ -40,10 +40,10 @@ gc = gspread.service_account() wks = gc.open("Where is the money Lebowski?").sheet1 # Update a range of cells using the top left corner address -wks.update('A1', [[1, 2], [3, 4]]) +wks.update([[1, 2], [3, 4]], "A1") # Or update a single cell -wks.update('B42', "it's down there somewhere, let me take another look.") +wks.update_acell("B42", "it's down there somewhere, let me take another look.") # Format the header wks.format('A1:B1', {'textFormat': {'bold': True}}) From 2ff2b9aa903c8e4d76715099f57af4f8049b272d Mon Sep 17 00:00:00 2001 From: alifeee Date: Wed, 13 Mar 2024 09:43:06 +0000 Subject: [PATCH 2/2] change other `update`s --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 482d093f9..020022cc4 100644 --- a/README.md +++ b/README.md @@ -261,10 +261,10 @@ cell_list = worksheet.findall(criteria_re) ```python # Update a single cell -worksheet.update('B1', 'Bingo!') +worksheet.update_acell('Bingo!', 'B1') # Update a range -worksheet.update('A1:B2', [[1, 2], [3, 4]]) +worksheet.update([[1, 2], [3, 4]], 'A1:B2') # Update multiple ranges at once worksheet.batch_update([{