(self)
return timeline_dict.get(self.index_name)
Return a boolean indicating whether the timeline is archived.
Return a boolean indicating whether the timeline is archived.
Return a boolean indicating whether the timeline is archived .
def is_archived(self):
        """Return a boolean indicating whether the timeline is archived."""
        resource_url = (
            f'{self.api.api_root}/sketches/{self._sketch_id}/archive/')
        response = self.api.session.get(resource_url)
        data = error.get_response_json(response, logger)
        meta = data.get('meta', {})
        sketch_is_archived = meta.get('is_archived', False)

        timeline_dict = meta.get('timelines')
        if not timeline_dict:
            return sketch_is_archived
        return timeline_dict.get(self.index_name)
def is_archived ( self ) : resource_url = ( f'{self.api.api_root}/sketches/{self._sketch_id}/archive/' ) response = self . api . session . get ( resource_url ) data = error . get_response_json ( response , logger ) meta = data . get ( 'meta' , { } ) sketch_is_archived = meta . get ( 'is_archived' , False ) timeline_dict = meta . get ( 'timelines' ) if not timeline_dict : return sketch_is_archived return timeline_dict . get ( self . index_name )