def post_process(self, rows):
"""
Build a table including:
Project name | Bug pts | Story pts | Debt %
Name1 |
NameN |
Grand Total |
"""
project_points_by_type = reduce_(self._to_story_points, rows, {})
results = ({
'project_name': k,
'bug_points': self._format_points(v[0]),
'story_points': self._format_points(v[1]),
'tech_debt': self._tech_debt_perc(v)
} for k, v in project_points_by_type.items())
sort_by_name = partial(self._sort_by_name, 'project_name')
return sorted(results, key=cmp_to_key(sort_by_name))
techdebt.py 文件源码
python
阅读 28
收藏 0
点赞 0
评论 0
评论列表
文章目录