Skip to content
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

apply_format range error #593

Open
dorbal opened this issue Feb 8, 2024 · 0 comments
Open

apply_format range error #593

dorbal opened this issue Feb 8, 2024 · 0 comments

Comments

@dorbal
Copy link

dorbal commented Feb 8, 2024

Describe the bug
I tried to change a column format except the first cell, but the format was applied to the whole column. I took a look at the code and the bug probably caused by the GridRange.

To Reproduce
Steps to reproduce the behavior:

from pygsheets.address import GridRange
//...
grange1 = GridRange.create('G:G', wks)
grange2 = GridRange.create('G2:G', wks)
print(grange1.to_json())
print(grange2.to_json())

# see error
# Output:
# {'sheetId': '...', 'startColumnIndex': 6, 'endColumnIndex': 7}
# {'sheetId': '...', 'startColumnIndex': 6, 'endColumnIndex': 7} # <- it should be different

System Information

  • OS: Ubuntu 22.04.3 LTS
  • pygsheets version : 2.0.6
  • pygsheets installed from (github or pypi): pypi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant