(self, graphs_data)
return graphs_data_new_format
Workaround to work with jinja2 templating
Workaround to work with jinja2 templating
Workaround to work with jinja2 templating
def _graph_data_format_to_index_format(self, graphs_data):
        """ 
            Workaround to work with jinja2 templating
        """
        graphs_data_new_format = []
        for graph_data in graphs_data:
            name  = graph_data.get_name()
            _id  = graph_data.get_id()
            filename = graph_data.get_filename()
            graphs_data_new_format.append((name, _id, filename))
        return graphs_data_new_format
def _graph_data_format_to_index_format ( self , graphs_data ) : graphs_data_new_format = [ ] for graph_data in graphs_data : name = graph_data . get_name ( ) _id = graph_data . get_id ( ) filename = graph_data . get_filename ( ) graphs_data_new_format . append ( ( name , _id , filename ) ) return graphs_data_new_format