Skip to content

Commit

Permalink
Merge pull request #7 from aarhusstadsarkiv/add-action-field
Browse files Browse the repository at this point in the history
Added an action field to thr primary file model. This is goind to be used by convertool and should also be added to digiarch
  • Loading branch information
Magniler authored Sep 20, 2023
2 parents 0f51f2b + 9271ea3 commit b20af8a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions acacore/models/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class File(ACABase):
file_size_in_bytes: int
signature: Optional[str]
warning: Optional[str] = None
action: Optional[str] = None

def get_absolute_path(self, root: Optional[Path] = None) -> Path:
return root.joinpath(self.relative_path) if root else self.relative_path.resolve()
Expand Down

0 comments on commit b20af8a

Please sign in to comment.