Skip to content

Commit a5202e0

Browse files
author
Jan Sebastian Rothe
committed
int type error
1 parent b1f2a4e commit a5202e0

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
@@ -278,7 +278,7 @@ def latest_version_number(filepath: str) -> int:
278278
Returns:
279279
int: The latest version number for the file.
280280
"""
281-
return get_version_number(latest_version_path(filepath))
281+
return int(get_version_number(latest_version_path(filepath)))
282282

283283

284284
def next_version_number(filepath: str) -> int:
@@ -294,7 +294,7 @@ def next_version_number(filepath: str) -> int:
294294
"""
295295
if get_fileversions(filepath):
296296
latest_version = latest_version_number(filepath)
297-
next_version_int = 1 + latest_version
297+
next_version_int = 1 + int(latest_version)
298298
else:
299299
next_version_int = 1
300300
return next_version_int

0 commit comments

Comments
 (0)