Skip to content

Commit

Permalink
refactor: datetime -> AwareDatetime and remove default
Browse files Browse the repository at this point in the history
  • Loading branch information
dbirman committed Sep 25, 2024
1 parent 53f4277 commit b5444ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/aind_data_schema/core/quality_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from aind_data_schema_models.modalities import Modality
from pydantic import Field, BaseModel

from aind_data_schema.base import AindCoreModel, AindModel
from aind_data_schema.base import AindCoreModel, AindModel, AwareDatetimeWithDefault


class Status(str, Enum):
Expand All @@ -36,7 +36,7 @@ class QCStatus(BaseModel):

evaluator: str = Field(..., title="Status evaluator full name")
status: Status = Field(..., title="Status")
timestamp: datetime = Field(..., title="Status date", default_factory=datetime.now)
timestamp: AwareDatetimeWithDefault = Field(..., title="Status date")


class QCMetric(BaseModel):
Expand Down

0 comments on commit b5444ff

Please sign in to comment.