job.py 文件源码

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

项目:webspider 作者: GuozhuHe 项目源码 文件源码
def add(cls, id, company_id, city_id, title, work_year=0, department='', salary='', education=0, description='',
            advantage='', job_nature=0, created_at=0):
        job = cls(id=id, title=title, city_id=city_id, company_id=company_id, work_year=int(work_year),
                  department=department, salary=salary, education=int(education), description=description,
                  advantage=advantage, job_nature=int(job_nature), created_at=created_at)
        try:
            cls.session.merge(job)
            cls.session.flush()
        except InvalidRequestError as e:
            cls.session.rollback()
            raise e
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号