Skip to content

Commit 591a93d

Browse files
authored
Merge pull request #1409 from burnash/update/readme-migration-guide
update migration guide
2 parents cb1a63e + af9eb4a commit 591a93d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

+16
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ As well, `values` can no longer be a list, and must be a 2D array.
7171
+ file.sheet1.update(range_name="B2:C2", values=[["54", "55"]])
7272
```
7373

74+
### More
75+
76+
<details><summary>See More Migration Guide</summary>
77+
7478
### Change colors from dictionary to text
7579

7680
v6 uses hexadecimal color representation. Change all colors to hex. You can use the compatibility function `gspread.utils.convert_colors_to_hex_value()` to convert a dictionary to a hex string.
@@ -107,6 +111,18 @@ In v6 you can now only get *all* sheet records, using `Worksheet.get_all_records
107111
In version 5 there are many warnings to mark deprecated feature/functions/methods.
108112
They can be silenced by setting the `GSPREAD_SILENCE_WARNINGS` environment variable to `1`
109113

114+
### Add more data to `gspread.Worksheet.__init__`
115+
116+
```diff
117+
gc = gspread.service_account(filename="google_credentials.json")
118+
spreadsheet = gc.open_by_key("{{key}}")
119+
properties = spreadsheet.fetch_sheet_metadata()["sheets"][0]["properties"]
120+
- worksheet = gspread.Worksheet(spreadsheet, properties)
121+
+ worksheet = gspread.Worksheet(spreadsheet, properties, spreadsheet.id, gc.http_client)
122+
```
123+
124+
</details>
125+
110126
## More Examples
111127

112128
### Opening a Spreadsheet

0 commit comments

Comments
 (0)