Skip to content

Commit e81c9b0

Browse files
Mary Hippmaryhipp
authored andcommitted
add default for opened_at
1 parent 89f457c commit e81c9b0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

invokeai/app/services/workflow_records/workflow_records_common.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@ class WorkflowRecordDTOBase(BaseModel):
9898
name: str = Field(description="The name of the workflow.")
9999
created_at: Union[datetime.datetime, str] = Field(description="The created timestamp of the workflow.")
100100
updated_at: Union[datetime.datetime, str] = Field(description="The updated timestamp of the workflow.")
101-
opened_at: Optional[Union[datetime.datetime, str]] = Field(description="The opened timestamp of the workflow.")
101+
opened_at: Optional[Union[datetime.datetime, str]] = Field(
102+
default=None, description="The opened timestamp of the workflow."
103+
)
102104

103105

104106
class WorkflowRecordDTO(WorkflowRecordDTOBase):

0 commit comments

Comments
 (0)