branches.py 文件源码

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

项目:BookCloud 作者: livro-aberto 项目源码 文件源码
def get_tikz(project, branch, action, filename):
    images_path = join('repos', project.name, branch.name,
                       'build/html/_images')
    response = send_from_directory(os.path.abspath(images_path), filename)
    if '/_images/tikz-' in request.url:
        response.cache_control.max_age = 5256000
    return response
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号