From 9271ea3df136e3333572b6fac0c38d2cb2c69937 Mon Sep 17 00:00:00 2001 From: Magnus Lindholm Date: Wed, 20 Sep 2023 13:39:27 +0200 Subject: [PATCH] Added an action field to thr primary file model. This is goind to be used by convertool and should also be added to digiarch --- acacore/models/file.py | 1 + 1 file changed, 1 insertion(+) diff --git a/acacore/models/file.py b/acacore/models/file.py index f31173f..a82d9ae 100644 --- a/acacore/models/file.py +++ b/acacore/models/file.py @@ -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()