Skip to content

Commit

Permalink
Fix typo (#807)
Browse files Browse the repository at this point in the history
fixing typo made in #799 
index was unused
  • Loading branch information
AlexeyDmitriev authored Aug 12, 2020
1 parent 959613d commit d21e80a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gspread/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1520,7 +1520,7 @@ def insert_row(self, values, index=1, value_input_option='RAW'):
.. _ValueInputOption: https://developers.google.com/sheets/api/reference/rest/v4/ValueInputOption
"""
return self.insert_rows([values], 1, value_input_option='RAW')
return self.insert_rows([values], index, value_input_option='RAW')

def insert_rows(self, values, row=1, value_input_option='RAW'):
"""Adds multiple rows to the worksheet at the specified index and
Expand Down

0 comments on commit d21e80a

Please sign in to comment.