def read_data(self, **kwargs):
        """
            get the data from the service

            :param kwargs: contain keyword args : trigger_id at least
            :type kwargs: dict

            :rtype: list
        """
        date_triggered = kwargs.get('date_triggered')
        trigger_id = kwargs.get('trigger_id')

        kwargs['model_name'] = 'Evernote'
        kwargs['app_label'] = 'th_evernote'

        trigger = super(ServiceEvernote, self).read_data(**kwargs)

        filter_string = self.set_evernote_filter(date_triggered, trigger)
        evernote_filter = self.set_note_filter(filter_string)
        data = self.get_evernote_notes(evernote_filter)

        cache.set('th_evernote_' + str(trigger_id), data)
        return data
def read_data ( self , ** kwargs ) : date_triggered = kwargs . get ( 'date_triggered' ) trigger_id = kwargs . get ( 'trigger_id' ) kwargs [ 'model_name' ] = 'Evernote' kwargs [ 'app_label' ] = 'th_evernote' trigger = super ( ServiceEvernote , self ) . read_data ( ** kwargs ) filter_string = self . set_evernote_filter ( date_triggered , trigger ) evernote_filter = self . set_note_filter ( filter_string ) data = self . get_evernote_notes ( evernote_filter ) cache . set ( 'th_evernote_' + str ( trigger_id ) , data ) return data
get the data from the service

            :param kwargs: contain keyword args : trigger_id at least
            :type kwargs: dict

            :rtype: list