def get_data(orgnodes_list, orgpath_list, done, num=100):
    key_table = []
    orgname_list = unique_name_from_paths(orgpath_list)
    for (nodelist, orgname) in zip(orgnodes_list, orgname_list):
        for node in nodelist:
            if node.todo == done:
                (key, row) = key_row_from_node(node)
                if key:
                    row['orgname'] = orgname
                    key_table.append((key, row))
    orgpathname_list = [
        dict(orgpath=orgpath, orgname=orgname)
        for (orgpath, orgname) in zip(orgpath_list, orgname_list)]
    key_table.sort(reverse=True)
    table_add_oddday(key_table)
    table = list(itertools.islice((row for (key, row) in key_table), num))
    return dict(table=table, orgpathname_list=orgpathname_list,
                title='Recently archived tasks')
Get data for rendering jinja2 template. Data is dictionary like this:
dataset/ETHPy150Open tkf/orgviz/orgviz/dones.py/get_data