Skip to content

Commit b9b44ca

Browse files
committed
Added function to update spreadsheet headers
1 parent 1974293 commit b9b44ca

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

python/quip.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -486,13 +486,12 @@ def update_spreadsheet_headers(self, thread_id, *headers, **kwargs):
486486
spreadsheet = self.get_named_spreadsheet(kwargs["name"], thread_id)
487487
else:
488488
spreadsheet = self.get_first_spreadsheet(thread_id)
489-
section_id = self.get_last_row_item_id(spreadsheet)
490-
operation = self.AFTER_SECTION
489+
section_id = self.get_first_row_item_id(spreadsheet)
491490
return self.edit_document(
492491
thread_id=thread_id,
493492
content=content,
494493
section_id=section_id,
495-
operation=operation)
494+
operation=self.PREPEND)
496495

497496
def update_spreadsheet_row(self, thread_id, header, value, updates, **args):
498497
"""Finds the row where the given header column is the given value, and

0 commit comments

Comments
 (0)