products.py 文件源码

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

项目:ltd-keeper 作者: lsst-sqre 项目源码 文件源码
def rebuild_product_dashboard(slug):
    """Rebuild the LTD Dasher dashboard manually for a single product.

    Note that the dashboard is built asynchronously.

    **Authorization**

    User must be authenticated and have ``admin_product`` permissions.

    :statuscode 202: Dashboard rebuild trigger sent.

    **See also**

    - :http:post:`/dashboards`
    """
    product = Product.query.filter_by(slug=slug).first_or_404()
    build_dashboards([product.get_url()],
                     current_app.config['LTD_DASHER_URL'],
                     current_app.logger)
    return jsonify({}), 202, {}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号