Skip to content

Commit

Permalink
Merge pull request #44 from socialpoint-labs/hotfix/set-notes-not-values
Browse files Browse the repository at this point in the history
Hotfix/set notes not values
  • Loading branch information
philippe2803 authored Jun 11, 2020
2 parents 6c7109d + d5a0a24 commit 102e8a2
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions sheetfu/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,11 +338,13 @@ def offset(self, row_offset, column_offset, num_rows=None, num_columns=None):
raise ValueError("Tried creating an offset of " + str(num_columns) + " columns.")
number_of_columns = num_columns

new_range_a1 = convert_coordinates_to_a1(row=top_row,
column=left_column,
number_of_row=number_of_rows,
number_of_column=number_of_columns,
sheet_name=self.coordinates.sheet_name)
new_range_a1 = convert_coordinates_to_a1(
row=top_row,
column=left_column,
number_of_row=number_of_rows,
number_of_column=number_of_columns,
sheet_name=self.coordinates.sheet_name
)
return Range(
client=self.client,
sheet=self.sheet,
Expand Down Expand Up @@ -529,7 +531,7 @@ def set_note(self, note, batch_to=None):
for column in range(0, self.coordinates.number_of_columns):
notes[row].append(note)

return self.set_values(notes, batch_to)
return self.set_notes(notes, batch_to)

def get_font_colors(self):
"""
Expand Down

0 comments on commit 102e8a2

Please sign in to comment.