From 2b075c28573bee041e118589744c1c23607723c9 Mon Sep 17 00:00:00 2001 From: Magnus Lindholm Date: Wed, 15 Nov 2023 10:04:28 +0100 Subject: [PATCH 1/2] added the file extension to the ExtractAction model, since this data i used by renamer and it is for most files also data that we ahve in the fileformats.yml --- acacore/models/reference_files.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/acacore/models/reference_files.py b/acacore/models/reference_files.py index 63f228e..bebe50e 100644 --- a/acacore/models/reference_files.py +++ b/acacore/models/reference_files.py @@ -39,10 +39,12 @@ class ExtractAction(BaseModel): Attributes: tool (str): The name of the tool used for extraction. + file_extension (Optional[str]): The suffix that the file should have. Defaults to None. dir_suffix (str): The output directory where the extracted data will be saved. """ tool: str + file_extension: Optional[str] = None dir_suffix: str From 07ac0f3d264fcc934c725937c7b2558d3e2856b8 Mon Sep 17 00:00:00 2001 From: Magnus Lindholm Date: Wed, 15 Nov 2023 10:29:31 +0100 Subject: [PATCH 2/2] changed name to just extension --- acacore/models/reference_files.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/acacore/models/reference_files.py b/acacore/models/reference_files.py index bebe50e..cb27425 100644 --- a/acacore/models/reference_files.py +++ b/acacore/models/reference_files.py @@ -39,12 +39,12 @@ class ExtractAction(BaseModel): Attributes: tool (str): The name of the tool used for extraction. - file_extension (Optional[str]): The suffix that the file should have. Defaults to None. + extension (Optional[str]): The suffix that the file should have. Defaults to None. dir_suffix (str): The output directory where the extracted data will be saved. """ tool: str - file_extension: Optional[str] = None + extension: Optional[str] = None dir_suffix: str