예제 #1
0
파일: views.py 프로젝트: ftzm/TaskLand
def view_by_project(tasks):
    """return list of tasks sorted by project"""
    return [t for p in utils.projects_get(tasks) for t in tasks
            if p in t.projects]
예제 #2
0
파일: taskland.py 프로젝트: ftzm/TaskLand
def print_projects():
    """print all projects represented in the task list"""
    tasks = collect_tasks()
    print('\n'.join(utils.projects_get(tasks)))