@classmethod
    def update_job_id(cls, filename, job_id):
        q = Jobs.select().where(Jobs.filename == filename)
        if q.count():
            Jobs.update(job_id=job_id).where(Jobs.filename == filename).execute()
        else:
            Jobs.create(filename=filename, job_id=job_id)
Update job_id for the given filename.
dataset/ETHPy150Open tsileo/bakthat/bakthat/models.py/Jobs.update_job_id