dal.py 文件源码

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

项目:mybookshelf2 作者: izderadicka 项目源码 文件源码
def get_conversion_id(source_id, user_id, format):
    async with engine.acquire() as conn:
        conversion = model.Conversion.__table__
        format_id = await get_format_id(format)
        res = await conn.execute(select([conversion.c.id]).where(and_(conversion.c.source_id==source_id,
                                                                      conversion.c.created_by_id == user_id,
                                                                      conversion.c.format_id == format_id)))
        res= await res.fetchone()
        if res:
            return res[0]
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号