Skip to content

Commit

Permalink
Convert percent completed to float
Browse files Browse the repository at this point in the history
  • Loading branch information
prryplatypus committed Jun 6, 2024
1 parent c0f4def commit ea1a173
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ergate/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Job(BaseModel):
step_name: str | None = None
status: JobStatus = JobStatus.QUEUED
steps_completed: int = Field(default=0, ge=0)
percent_completed: int = Field(default=0, ge=0, le=100)
percent_completed: float = Field(default=0.0, ge=0.0, le=100.0)
initial_input_value: Any = None
last_return_value: Any = None
exception_traceback: str | None = None
Expand Down

0 comments on commit ea1a173

Please sign in to comment.