coveralls.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:flash_services 作者: textbook 项目源码 文件源码
def format_data(self, name, data):
        """Re-format the response data for the front-end.

        Arguments:
          data (:py:class:`dict`): The JSON data from the response.
          name (:py:class:`str`): The name of the repository.

        Returns:
          :py:class:`dict`: The re-formatted data.

        """
        builds = [self.format_build(build) for build in data.get('builds', [])]

        return dict(
            builds=builds[:4],
            health=self.health(builds[0] if builds else None),
            name=name,
        )
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号