MCPcopy Index your code
hub / github.com/O365/python-o365 / update

Method update

O365/excel.py:824–841  ·  view source on GitHub ↗

Update this range

(self)

Source from the content-addressed store, hash-verified

822 return self._get_range('get_resized_range', rows, columns, method='GET')
823
824 def update(self):
825 """ Update this range """
826
827 if not self._track_changes:
828 return True # there's nothing to update
829
830 data = self.to_api_data(restrict_keys=self._track_changes)
831 response = self.session.patch(self.build_url(''), data=data)
832 if not response:
833 return False
834
835 data = response.json()
836
837 for field in self._track_changes:
838 setattr(self, to_snake_case(field), data.get(field))
839 self._track_changes.clear()
840
841 return True
842
843 def get_worksheet(self):
844 """ Returns this range worksheet """

Callers 15

get_usersMethod · 0.45
_get_userMethod · 0.45
usernameMethod · 0.45
request_tokenMethod · 0.45
get_sessionMethod · 0.45
refresh_tokenMethod · 0.45
update_fieldsMethod · 0.45
get_itemsMethod · 0.45
get_foldersMethod · 0.45
get_messagesMethod · 0.45
get_contactsMethod · 0.45

Calls 7

to_api_dataMethod · 0.95
to_snake_caseFunction · 0.85
build_urlMethod · 0.80
jsonMethod · 0.80
patchMethod · 0.45
getMethod · 0.45
clearMethod · 0.45

Tested by 2

test_updateMethod · 0.36
messageFunction · 0.36