diff --git a/cracklab/server/services/job_result.py b/cracklab/server/services/job_result.py index 65a971c..578c853 100644 --- a/cracklab/server/services/job_result.py +++ b/cracklab/server/services/job_result.py @@ -418,9 +418,9 @@ class JobResultService: f"Step {step_no}: step_id does not match the Job" ) - if step.get("session") != db_step["session_name"]: + if step.get("session_name") != db_step["session_name"]: raise JobResultError( - f"Step {step_no}: session does not match the Job" + f"Step {step_no}: session_name does not match the Job" ) if step.get("status") != "COMPLETED":