Skip to content

Commit

Permalink
models.file:File.action_data - use Field to set default
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoCampinoti94 authored Jun 27, 2024
1 parent 572647a commit bc398dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acacore/models/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class File(BaseModel):
signature: str | None
warning: list[str] | None = None
action: TActionType | None = DBField(index=["idx_action"])
action_data: ActionData = ActionData()
action_data: ActionData = Field(default_factory=ActionData)
processed: bool = False
lock: bool = False
root: Path | None = DBField(None, ignore=True)
Expand Down

0 comments on commit bc398dc

Please sign in to comment.