We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb39086 commit 4cba4e1Copy full SHA for 4cba4e1
src/fagfunksjoner/paths/versions.py
@@ -91,7 +91,7 @@ def get_latest_fileversions(glob_list_path: list[str]) -> list[str]:
91
latest_files = get_latest_fileversions(all_files)
92
"""
93
# Extract unique base names by splitting before the version part
94
- uniques = [file.rsplit("_v", 1)[0] for file in glob_list_path]
+ uniques = list(dict.fromkeys([file.rsplit("_v", 1)[0] for file in glob_list_path]))
95
result = []
96
97
for unique in uniques:
0 commit comments