cron.py 文件源码

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

项目:tingsmen 作者: pasqu4le 项目源码 文件源码
def send_notif_message(self, notif):
        msg = Message('Update on ' + notif.source_type + ' ' + str(notif.source_id), recipients=[notif.user.email])
        msg.body = notif.to_text() + '\n\nsee it here: ' + notif.link
        options = {
            'notif': notif
        }
        msg.html = render_template('email/notif.html', **options)
        self.messages.append(msg)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号