Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: duplicate formats in input #146

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/migmose/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

verlierst du dadurch die sortierung? ws. nicht wichtig?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Die Sortierung ist da nicht wichtig. Die Idee ist nur, dass im default Case (alle Formate inkl UTILMD und UTILMDS/UTILMDG) nichts doppelt ist. :)

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
Expand Down