Skip to content

Commit

Permalink
replace brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
Vince-janv committed Jun 12, 2024
1 parent de9249d commit 32f59b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trailblazer/services/slurm/slurm_api_service/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 32f59b1

Please sign in to comment.