Skip to content

Commit

Permalink
refactor(otf/models/responses): change date_created and date_updated …
Browse files Browse the repository at this point in the history
…types from str to datetime for better date handling
  • Loading branch information
NodeJSmith committed Jun 11, 2024
1 parent 41ff851 commit 4c13b7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/otf/models/responses/challenge_tracker_detail.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class BenchmarkHistory(BaseModel):
studio_name: str = Field(..., alias="StudioName")
equipment_id: int = Field(..., alias="EquipmentId")
result: float | str = Field(..., alias="Result")
date_created: str = Field(..., alias="DateCreated")
date_updated: str = Field(..., alias="DateUpdated")
date_created: datetime = Field(..., alias="DateCreated")
date_updated: datetime = Field(..., alias="DateUpdated")
class_time: datetime = Field(..., alias="ClassTime")
challenge_sub_category_id: None = Field(..., alias="ChallengeSubCategoryId")
class_id: int = Field(..., alias="ClassId")
Expand Down

0 comments on commit 4c13b7b

Please sign in to comment.