From 67b16064bb78ab315f3b1ea86a634a3e0b33d0ec Mon Sep 17 00:00:00 2001 From: msramalho <19508417+msramalho@users.noreply.github.com> Date: Sat, 12 Mar 2022 20:11:38 +0100 Subject: [PATCH] offby1 --- utils/gworksheet.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/gworksheet.py b/utils/gworksheet.py index c536f37..7e0c82a 100644 --- a/utils/gworksheet.py +++ b/utils/gworksheet.py @@ -66,7 +66,7 @@ class GWorksheet: def set_cell(self, row: int, col: str, val): # row is 1-based col_index = self._col_index(col) + 1 - self.wks.update_cell(row + self.row_offset, col_index, val) + self.wks.update_cell(row, col_index, val) def batch_set_cell(self, cell_updates): """ @@ -83,4 +83,4 @@ class GWorksheet: def to_a1(self, row: int, col: str): # row is 1-based - return utils.rowcol_to_a1(row + self.row_offset, self._col_index(col) + 1) + return utils.rowcol_to_a1(row, self._col_index(col) + 1)