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 063cdd3 commit dc083eeCopy full SHA for dc083ee
src/fagfunksjoner/paths/versions.py
@@ -194,7 +194,7 @@ def get_fileversions(filepath: str) -> list[str]:
194
logger.warning(
195
f"Can't find any files with this name, glob-pattern: {glob_pattern}."
196
)
197
- return files_list
+ return list(files_list)
198
199
200
def latest_version_path(filepath: str) -> str:
@@ -237,7 +237,7 @@ def latest_version_path(filepath: str) -> str:
237
f"The latest version returned more than one file: {list_print}"
238
239
240
- latest_file = latest_files_list[-1]
+ latest_file = latest_files_list[0]
241
242
# Extract the version number from the latest file.
243
latest_version_number = get_version_number(latest_file)
0 commit comments