Skip to content

Commit dc083ee

Browse files
author
Jan Sebastian Rothe
committed
attempt
1 parent 063cdd3 commit dc083ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fagfunksjoner/paths/versions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def get_fileversions(filepath: str) -> list[str]:
194194
logger.warning(
195195
f"Can't find any files with this name, glob-pattern: {glob_pattern}."
196196
)
197-
return files_list
197+
return list(files_list)
198198

199199

200200
def latest_version_path(filepath: str) -> str:
@@ -237,7 +237,7 @@ def latest_version_path(filepath: str) -> str:
237237
f"The latest version returned more than one file: {list_print}"
238238
)
239239

240-
latest_file = latest_files_list[-1]
240+
latest_file = latest_files_list[0]
241241

242242
# Extract the version number from the latest file.
243243
latest_version_number = get_version_number(latest_file)

0 commit comments

Comments
 (0)