_init_anidb.py 文件源码

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

项目:anime_scrapers 作者: jQwotos 项目源码 文件源码
def need_to_download(self):
        try:
            with open(INFO_FILE, "r") as f:
                data = f.readline()
                if len(data) > 0:
                    last_download = date.fromordinal(int(data))
                    time_delta = date.today() - last_download
                    if time_delta.days > 7:
                        return True
                    else:
                        return False
                else:
                    return True
        except FileNotFoundError:
            return True
        return False
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号