def init_stats_history(self):
        """Init the stats history (dict of GlancesAttribute)."""
        if self.history_enable():
            init_list = [a['name'] for a in self.get_items_history_list()]
            logger.debug("Stats history activated for plugin {} (items: {})".format(self.plugin_name, init_list))
        return GlancesHistory()
def init_stats_history ( self ) : if self . history_enable ( ) : init_list = [ a [ 'name' ] for a in self . get_items_history_list ( ) ] logger . debug ( "Stats history activated for plugin {} (items: {})" . format ( self . plugin_name , init_list ) ) return GlancesHistory ( )
Init the stats history (dict of GlancesAttribute).