nithinmurali / pygsheets

Google Sheets Python API v4
https://pygsheets.readthedocs.io/en/latest
Other
1.51k stars 220 forks source link

Spreadsheet.add_worksheet doesn't account for index while copying a workbook #496

Closed dmitrybabanovforreal closed 3 years ago

dmitrybabanovforreal commented 3 years ago

There is a parameter "index" in this method but it works only when you create a new worksheet without copying.

Looking at the source code of this function shows that when you specify a worksheet to copy, the "index" parameter is completely ignored.