core.py 文件源码

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

项目:bock 作者: afreeorange 项目源码 文件源码
def get_revision_list(self, article_path):
        """Get a list of revision objects for a given article title
        """
        revisions = []

        for commit in self.get_commits(article_path):
            committed_date = arrow.get(commit.committed_date)

            revisions.append({
                'id': commit.hexsha,
                'message': commit.message,
                'author': commit.author.name,
                'email': commit.author.email,
                'committed': str(committed_date),
                'committed_humanized': committed_date.humanize()
            })

        return revisions
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号