tasks.py 文件源码

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

项目:podigger 作者: perna 项目源码 文件源码
def update_total_episodes():
    with app.app_context():
        podcasts = Podcast.query.all()
        for podcast in podcasts:
            podcast.total_episodes = podcast.episodes.count()
        db.session.commit()
        requests.get("https://hchk.io/5db2d9f6-c920-4b87-a671-cc4681bffc02")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号