Skip to content

Commit

Permalink
reset breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
Nithin Murali committed Jan 18, 2021
1 parent 9917784 commit 8dcc2bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pygsheets/worksheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -1720,7 +1720,7 @@ def __getitem__(self, item):
if item >= self.rows:
raise CellNotFound
try:
row = [''] + self.get_row(item, include_tailing_empty=True)
row = self.get_row(item, include_tailing_empty=True)
except IndexError:
raise CellNotFound
return row
2 changes: 1 addition & 1 deletion tests/online_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ def test_getitem(self):
self.worksheet.update_row(1, [1, 2, 3, 4, 5])
row = self.worksheet[1]
assert len(row) == self.worksheet.cols + 1
assert row[1] == str(1) # first index is dummy
assert row[0] == str(1) # TODO first index is dummy

def test_clear(self):
self.worksheet.update_value('S10', 100)
Expand Down

0 comments on commit 8dcc2bf

Please sign in to comment.