def list(list_name='task.txt'): project = request.query.project or '' context = request.query.context or '' date = request.query.date or '' priority = request.query.priority or '' cur_list = todo_list(priority, date, project, context) return cur_list.to_html()
def project(project =''): cur_list = todo_list('project') return cur_list.to_html()