Skip to content

Commit

Permalink
Using append_rows to handle input.
Browse files Browse the repository at this point in the history
  • Loading branch information
muddi900 committed Jul 20, 2024
1 parent 06ffddc commit 7cbf453
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions gspread/worksheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
from .cell import Cell
from .exceptions import GSpreadException
from .http_client import HTTPClient, ParamsType
from .urls import WORKSHEET_DRIVE_URL
from .urls import WORKSHEET_DRIVE_URL, SPREADSHEET_VALUES_APPEND_URL
from .utils import (
DateTimeOption,
Dimension,
Expand Down Expand Up @@ -627,7 +627,10 @@ def set_records(self, rows: List[Dict[str, Any]]) -> None:
insert_row.append(row[col])
insert_rows.append(insert_row)

self.insert_rows(insert_rows, row=self.row_count + 1)
self.append_rows(
insert_rows,
value_input_option=ValueInputOption.user_entered,
)

def set_record(self, row: Dict[str, Any]) -> None:
self.set_records([row])
Expand Down

0 comments on commit 7cbf453

Please sign in to comment.