-
Notifications
You must be signed in to change notification settings - Fork 948
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
Fix/update-internal-properties #1225
Conversation
(oops) was not aware of implementation I thought end_index was the row *after* the last deleted row
it is handled by `delete_dimension` (was being duplicated)
Final thoughts: we should consider if
These are not updated on property change. I see:
|
(based on comment #881 (comment)) closes #881 |
looks the only methods we may have to edit are
I will do this soon. and then the discussion of |
ok, done it is ready to merge now, just after wondering whether gspread/gspread/spreadsheet.py Lines 62 to 70 in 20a2209
So it runs an API request if it is not already in |
That's hard to say, currently we request it if not present but as you mention it's not updated. To me we could add a new method like you said In a way we provide a way to update the property. does that makes sense ? this way we can add it to the next release using the current PR without breaking anything. |
Changes discussed in #881
gspread.Worksheet._properties
(and thus thegspread.Worksheet
@property
fields) are now updated whenever the following are called (as well as previous changes):append_rows
insert_rows
insert_cols
delete_dimension
(as you can see, the leftover was mostly
gspread.Worksheet.row_count
and[...].col_count
also new tests added for
insert_cols
anddelete_cols
(before, only row tests existed)