def html_every_task(): """ Iterate through every tasks and use html_task(task) to create html output :return: """ tasks = db_utils.get_tasks_info() task_names = [] for task in tasks: name = task[1] color_id = task[3] color = db_utils.get_color(color_id) #print color task_names.append(name) html_task(name, color) html_task("data")
def json_every_task(): """ Write json output of all tasks to individual files :return: """ tasks = db_utils.get_tasks_info() task_names = [] for task in tasks: name = task[1] file = "html/_"+name+".json" task_names.append(name) json_get_time_all(name, file) json_get_time_all() # Create _data.json file json_list_tasks(task_names)