def update(self):
        """ Updates this range format """
        if self._track_changes:
            data = self.to_api_data(restrict_keys=self._track_changes)
            if data:
                response = self.session.patch(self.build_url(''), data=data)
                if not response:
                    return False
                self._track_changes.clear()
        if self._font._track_changes:
            data = self._font.to_api_data(restrict_keys=self._font._track_changes)
            if data:
                response = self.session.patch(self.build_url(self._endpoints.get('font')), data=data)
                if not response:
                    return False
                self._font._track_changes.clear()
        if self._track_background_color:
            if self._background_color is None:
                url = self.build_url(self._endpoints.get('clear_fill'))
                response = self.session.post(url)
            else:
                data = {'color': self._background_color}
                url = self.build_url(self._endpoints.get('fill'))
                response = self.session.patch(url, data=data)
            if not response:
                return False
            self._track_background_color = False

        return True
def update ( self ) : if self . _track_changes : data = self . to_api_data ( restrict_keys = self . _track_changes ) if data : response = self . session . patch ( self . build_url ( '' ) , data = data ) if not response : return False self . _track_changes . clear ( ) if self . _font . _track_changes : data = self . _font . to_api_data ( restrict_keys = self . _font . _track_changes ) if data : response = self . session . patch ( self . build_url ( self . _endpoints . get ( 'font' ) ) , data = data ) if not response : return False self . _font . _track_changes . clear ( ) if self . _track_background_color : if self . _background_color is None : url = self . build_url ( self . _endpoints . get ( 'clear_fill' ) ) response = self . session . post ( url ) else : data = { 'color' : self . _background_color } url = self . build_url ( self . _endpoints . get ( 'fill' ) ) response = self . session . patch ( url , data = data ) if not response : return False self . _track_background_color = False return True
Updates this range format