-
Notifications
You must be signed in to change notification settings - Fork 949
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
Issue #687 : Add feature to set position of worksheet #688
Conversation
@burnash please have a look. |
This is a good change to make. Would be interested in seeing this be merged! |
gspread/models.py
Outdated
@@ -269,6 +271,9 @@ def add_worksheet(self, title, rows, cols): | |||
}] | |||
} | |||
|
|||
if index: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if index: | |
if index is not None: |
If index
is set to 0, this will return false and not send the index to google. Setting an index
of 0 is very useful when you want your current worksheet to be the first worksheet within the spreadsheet.
@lucasklaassen thanks for the review, I will update my PR as soon as possible |
Solves issue burnash#687. Added param index in add_worksheet method to set index of the newly created worksheet
@lucasklaassen done with the change you suggested. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@burnash this change is valuable and the code looks good. Can you please review and merge? |
@djmgit thank you for your contribution. |
Solves issue #687. Added param index in add_worksheet method
to set index of the newly created worksheet