From cb58f1275e5605150fe8c55de93384c001eda98f Mon Sep 17 00:00:00 2001 From: Daniel <139119540+DeltaDaniel@users.noreply.github.com> Date: Tue, 3 Sep 2024 13:28:20 +0200 Subject: [PATCH] fix: duplicate formats in input (#146) fixed duplicate formats in input --- src/migmose/__main__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/migmose/__main__.py b/src/migmose/__main__.py index ed4ee2a..af5d94e 100644 --- a/src/migmose/__main__.py +++ b/src/migmose/__main__.py @@ -84,7 +84,8 @@ def main( "💡 UTILMD is not available for format versions 2310 and above. Parse UTILMDS and UTILMDG instead." ) message_format.remove(EdifactFormat.UTILMD) - message_format.extend([EdifactFormat.UTILMDG, EdifactFormat.UTILMDS]) + message_format.extend([EdifactFormat.UTILMDG, EdifactFormat.UTILMDS, EdifactFormat.UTILMDW]) + message_format = list(set(message_format)) dict_files = find_file_to_format(message_format, edi_energy_mirror_path, format_version) for m_format, file in dict_files.items(): output_dir_for_format = output_dir / format_version / m_format