model.py 文件源码

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

项目:botfriend 作者: leonardr 项目源码 文件源码
def for_external_key(cls, bot, key):
        """Find or create the Post  with the given external key.
        """
        from bot import Bot
        if isinstance(bot, Bot):
            bot = bot.model
        _db = Session.object_session(bot)
        return get_one_or_create(_db, Post, bot=bot, external_key=key)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号