From 32f59b125fb7bd75a0428fc07b040e89e47346cd Mon Sep 17 00:00:00 2001 From: Vincent Janvid Date: Wed, 12 Jun 2024 14:43:25 +0200 Subject: [PATCH] replace brackets --- trailblazer/services/slurm/slurm_api_service/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trailblazer/services/slurm/slurm_api_service/utils.py b/trailblazer/services/slurm/slurm_api_service/utils.py index 192fe7b7..6ed967bb 100644 --- a/trailblazer/services/slurm/slurm_api_service/utils.py +++ b/trailblazer/services/slurm/slurm_api_service/utils.py @@ -31,4 +31,4 @@ def get_job_start_time(job: SlurmAPIJobInfo) -> datetime | None: def get_job_state(job: SlurmAPIJobInfo) -> TrailblazerStatus | None: - return TrailblazerStatus(job.job_state[0]) if job.job_state else None + return TrailblazerStatus[job.job_state[0]] if job.job_state else None