Set 'submitted' as initial job status value.

This commit is contained in:
Patrick Jentsch 2019-08-07 10:21:04 +02:00
parent ed2d1abd8c
commit 0ac3ed3a29

View File

@ -26,7 +26,7 @@ def ocr():
"--skip-binarisation"], "--skip-binarisation"],
"lang": new_ocr_job_form.language.data, "lang": new_ocr_job_form.language.data,
"version": new_ocr_job_form.version.data}), "version": new_ocr_job_form.version.data}),
status="queued", status="submitted",
title=new_ocr_job_form.title.data) title=new_ocr_job_form.title.data)
db.session.add(ocr_job) db.session.add(ocr_job)
db.session.commit() db.session.commit()
@ -75,7 +75,7 @@ def nlp():
service_args=json.dumps({"args": [], service_args=json.dumps({"args": [],
"lang": new_nlp_job_form.language.data, "lang": new_nlp_job_form.language.data,
"version": new_nlp_job_form.version.data}), "version": new_nlp_job_form.version.data}),
status="queued", status="submitted",
title=new_nlp_job_form.title.data) title=new_nlp_job_form.title.data)
db.session.add(nlp_job) db.session.add(nlp_job)
db.session.commit() db.session.commit()