-
Notifications
You must be signed in to change notification settings - Fork 952
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
get_notes from a range #1482
Comments
Would this be a good addition: - def get_notes(self, default_empty_value: Optional[str] = "") -> List[List[str]]:
+ def get_notes(
+ self, default_empty_value: Optional[str] = "", range: Optional[str] = None
+ ) -> List[List[str]]:
# ...
params: ParamsType = {"fields": "sheets.data.rowData.values.note"}
+ if range is not None:
+ params["ranges"] = absolute_range_name(self.title, range)
res = self.client.spreadsheets_get(self.spreadsheet_id, params)
|
@lavigne958 I have added tested the code and it works as expected. Should I open a pull request? |
hi hi @muddi900! thanks for the enthusiasm :) we'd love to have a PR! it would be great if you created a unit test to test the new functionality, as we try to create for all changes. if you need some help with the testing framework beyond the contributing guide, let us know and we will be happy to help :) |
Added a range option to `Worksheet.get_notes` [Issue #1482]
Alexandre,
Has this been implemented in 6.1.3 ? I was under the impression that it wouldn't be implemented until 6.2.0.
Regards
John Cook
Sent from Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: Alexandre Lavigne ***@***.***>
Sent: Monday, October 7, 2024 8:37:14 PM
To: burnash/gspread ***@***.***>
Cc: twosheds ***@***.***>; Author ***@***.***>
Subject: Re: [burnash/gspread] get_notes from a range (Issue #1482)
Closed #1482<#1482> as completed via #1487<#1487>.
—
Reply to this email directly, view it on GitHub<#1482 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAEXU4EROJYQN7SN7ZV3DJ3Z2LPGVAVCNFSM6AAAAABJJBCODKVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJUGU2DKOBYHA3TONQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
it is not in 6.1.3. it will be added in 6.2.0 |
I think get_notes would be more useful if if could be applied to a range in addition to a worksheet.
The text was updated successfully, but these errors were encountered: